Files
GNX-mailEnterprise/frontend/node_modules/identity-obj-proxy/src/__tests__/require-vanilla-test.js
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

14 lines
322 B
JavaScript

const idObj = require('..');
describe('idObj', () => {
it('should return the key as a string', () => {
expect(idObj.foo).toBe('foo');
});
it('should support dot notation', () => {
expect(idObj.bar).toBe('bar');
});
it('should support bracket notation', () => {
expect(idObj[1]).toBe('1');
});
});