mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
14 lines
471 B
TypeScript
14 lines
471 B
TypeScript
import domainSorter from './stable-sort-domain';
|
|
// eslint-disable-next-line import/no-unresolved -- fuck eslint-import
|
|
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);
|
|
});
|
|
|
|
it('.fgnzdb.xyz, .hub.fghtem.com', () => {
|
|
expect(domainSorter('.fgnzdb.xyz', '.hub.fghtem.com')).toBe(1);
|
|
});
|
|
});
|