Chore: rewrite trie and sorter test in bun:test

This commit is contained in:
SukkaW
2023-11-30 10:53:16 +08:00
parent 4cda4df451
commit 6962c47782
4 changed files with 57 additions and 86 deletions

View 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);
});
});