mirror of
https://github.com/directus/directus.git
synced 2026-02-13 03:54:58 -05:00
* refresh edited insights panel on change * move api simpleHash to shared utils getSimpleHash * Simply reactivity fix for time-series * Remove unused import Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
import { getSimpleHash } from './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');
|
|
});
|
|
});
|