1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/frontend/src/utils/object-id.test.ts
olav 4066382b8f refactor: fix strategy modal issues (#778)
* refactor: wait for contexts before rendering constraints

* refactor: fix constraints list index

* refactor: move add constraint button for improved focus
2022-03-10 10:40:40 +01:00

14 lines
397 B
TypeScript

import { objectId } from 'utils/object-id';
test('objectId', () => {
const a = {};
const b = {};
const c = {};
expect(objectId(a)).toBeGreaterThan(0);
expect(objectId(b)).toBeGreaterThan(0);
expect(objectId(c)).toBeGreaterThan(0);
expect(objectId(a)).toBe(objectId(a));
expect(objectId(a)).not.toBe(objectId(b));
expect(objectId(a)).not.toBe(objectId(c));
});