|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
317 bytes
|
| Line | |
|---|
| 1 | import idObj from '..';
|
|---|
| 2 |
|
|---|
| 3 | describe('idObj', () => {
|
|---|
| 4 | it('should return the key as a string', () => {
|
|---|
| 5 | expect(idObj.foo).toBe('foo');
|
|---|
| 6 | });
|
|---|
| 7 | it('should support dot notation', () => {
|
|---|
| 8 | expect(idObj.bar).toBe('bar');
|
|---|
| 9 | });
|
|---|
| 10 | it('should support bracket notation', () => {
|
|---|
| 11 | expect(idObj[1]).toBe('1');
|
|---|
| 12 | });
|
|---|
| 13 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.