📄 import-es6-import-test.js
/home/palash/git/site/node_modules/identity-obj-proxy/src/__tests__/import-es6-import-test.js
Language: js • Lines: 13
import idObj from '../test-redirections/idObjES6Import';

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');
  });
});