|
@@ -319,7 +319,7 @@ describe('LayoutTreeParser', () => {
|
319
|
319
|
|
320
|
320
|
describe('createContainer', () => {
|
321
|
321
|
it('creates container object with passed data', () => {
|
322
|
|
- expect(uut._createContainer({ foo: 'bar' })).toEqual({ type: 'Container', data: { foo: 'bar' }, children: [] });
|
|
322
|
+ expect(uut.parseFromSimpleJSON({ name: 'theContainer', foo: 'bar' })).toEqual({ type: 'Container', data: { name: 'theContainer', foo: 'bar' }, children: [] });
|
323
|
323
|
});
|
324
|
324
|
});
|
325
|
325
|
|