1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/frontend/src/utils/objectId.test.ts

14 lines
396 B
TypeScript
Raw Normal View History

import { objectId } from 'utils/objectId';
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));
});