stable-sort-domain.test.ts 471 B

12345678910111213
  1. import domainSorter from './stable-sort-domain';
  2. // eslint-disable-next-line import/no-unresolved -- fuck eslint-import
  3. import { describe, it, expect } from 'bun:test';
  4. describe('stable-sort-domain', () => {
  5. it('.ks.cn, .tag.unclaimedproperty.ks.gov', () => {
  6. expect(domainSorter('.ks.cn', '.tag.unclaimedproperty.ks.gov')).toBe(-1);
  7. });
  8. it('.fgnzdb.xyz, .hub.fghtem.com', () => {
  9. expect(domainSorter('.fgnzdb.xyz', '.hub.fghtem.com')).toBe(1);
  10. });
  11. });