mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: rewrite trie and sorter test in bun:test
This commit is contained in:
8
Build/lib/stable-sort-domain.test.ts
Normal file
8
Build/lib/stable-sort-domain.test.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import domainSorter from './stable-sort-domain';
|
||||
import { describe, it, expect } from 'bun:test';
|
||||
|
||||
describe('stable-sort-domain', () => {
|
||||
it('.ks.cn, .tag.unclaimedproperty.ks.gov', () => {
|
||||
expect(domainSorter('.ks.cn', '.tag.unclaimedproperty.ks.gov')).toBe(-1);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user