mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
4066382b8f
* refactor: wait for contexts before rendering constraints * refactor: fix constraints list index * refactor: move add constraint button for improved focus
14 lines
397 B
TypeScript
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));
|
|
});
|