mirror of
https://github.com/directus/directus.git
synced 2026-02-08 16:24:56 -05:00
12 lines
367 B
TypeScript
12 lines
367 B
TypeScript
import { getSimpleHash } from '../../src/utils/get-simple-hash';
|
|
|
|
describe('getSimpleHash', () => {
|
|
it('returns "364492" for string "test"', () => {
|
|
expect(getSimpleHash('test')).toBe('364492');
|
|
});
|
|
|
|
it('returns "28cb67ba" for stringified object "{ key: \'value\' }"', () => {
|
|
expect(getSimpleHash(JSON.stringify({ key: 'value' }))).toBe('28cb67ba');
|
|
});
|
|
});
|