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
18 lines
438 B
Plaintext
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();
|
|
});
|
|
});
|