mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-12 13:48:35 +02:00
* 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));
|
|
});
|