Files
NapCatQQ/.pnpm-store/v3/files/90/f3deeeb3248d72b4d331776bcf48857f9486c642c4c4588ccd0550dea09dbb9c98fa4139dfab586138b347362917ecb5ed19a290cfece08a0966ffc83c0043
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
438 B
Plaintext

import { toHash } from '../to-hash';
describe('to-hash', () => {
it('regression', () => {
const res = toHash('goober');
expect(res).toEqual('go1990315141');
expect(toHash('goober')).toEqual('go1990315141');
});
it('collision', () => {
const a = toHash('background:red;color:black;');
const b = toHash('background:black;color:red;');
expect(a === b).toBeFalsy();
});
});