Browse Source

tests pass

Daniel Zlotin 8 years ago
parent
commit
d96437d646
2 changed files with 2 additions and 3 deletions
  1. 1
    2
      src/commands/LayoutTreeParser.js
  2. 1
    1
      src/commands/LayoutTreeParser.test.js

+ 1
- 2
src/commands/LayoutTreeParser.js View File

7
 
7
 
8
   parseFromSimpleJSON(simpleJsonApi) {
8
   parseFromSimpleJSON(simpleJsonApi) {
9
     // TOOD deepclone
9
     // TOOD deepclone
10
-
11
     if (simpleJsonApi.sideMenu) {
10
     if (simpleJsonApi.sideMenu) {
12
       return {
11
       return {
13
         type: 'SideMenuRoot',
12
         type: 'SideMenuRoot',
29
         type: 'SideMenuLeft',
28
         type: 'SideMenuLeft',
30
         id: this.uniqueIdProvider.generate('SideMenuLeft'),
29
         id: this.uniqueIdProvider.generate('SideMenuLeft'),
31
         children: [
30
         children: [
32
-          this.createContainer(layout.sideMenu.left)
31
+          this.createContainer(layout.sideMenu.left.container)
33
         ]
32
         ]
34
       });
33
       });
35
     }
34
     }

+ 1
- 1
src/commands/LayoutTreeParser.test.js View File

124
       });
124
       });
125
   });
125
   });
126
 
126
 
127
-  xit('parses side menus', () => {
127
+  it('parses side menus', () => {
128
     expect(uut.parseFromSimpleJSON(SimpleLayouts.singleWithSideMenu))
128
     expect(uut.parseFromSimpleJSON(SimpleLayouts.singleWithSideMenu))
129
       .toEqual({
129
       .toEqual({
130
         type: 'SideMenuRoot',
130
         type: 'SideMenuRoot',