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