|
@@ -47,28 +47,28 @@ describe('LayoutTreeCrawler', () => {
|
47
|
47
|
expect(store.getPropsForContainerId('Container+UNIQUE_ID')).toEqual({ myProp: 123 });
|
48
|
48
|
});
|
49
|
49
|
|
50
|
|
- it('Containers: injects navigationStyle from original container class static property', () => {
|
|
50
|
+ it('Containers: injects navigationOptions from original container class static property', () => {
|
51
|
51
|
const theStyle = {};
|
52
|
52
|
const MyContainer = class {
|
53
|
|
- static navigationStyle = theStyle;
|
|
53
|
+ static navigationOptions = theStyle;
|
54
|
54
|
};
|
55
|
55
|
|
56
|
56
|
const node = { type: LayoutTypes.Container, data: { name: 'theContainerName' } };
|
57
|
57
|
store.setOriginalContainerClassForName('theContainerName', MyContainer);
|
58
|
58
|
uut.crawl(node);
|
59
|
|
- expect(node.data.navigationStyle).toEqual(theStyle);
|
|
59
|
+ expect(node.data.navigationOptions).toEqual(theStyle);
|
60
|
60
|
});
|
61
|
61
|
|
62
|
|
- it('Containers: deepClones navigationStyle', () => {
|
|
62
|
+ it('Containers: deepClones navigationOptions', () => {
|
63
|
63
|
const theStyle = {};
|
64
|
64
|
const MyContainer = class {
|
65
|
|
- static navigationStyle = theStyle;
|
|
65
|
+ static navigationOptions = theStyle;
|
66
|
66
|
};
|
67
|
67
|
|
68
|
68
|
const node = { type: LayoutTypes.Container, data: { name: 'theContainerName' } };
|
69
|
69
|
store.setOriginalContainerClassForName('theContainerName', MyContainer);
|
70
|
70
|
uut.crawl(node);
|
71
|
|
- expect(node.data.navigationStyle).not.toBe(theStyle);
|
|
71
|
+ expect(node.data.navigationOptions).not.toBe(theStyle);
|
72
|
72
|
});
|
73
|
73
|
|
74
|
74
|
it('Containers: must contain data name', () => {
|
|
@@ -76,12 +76,12 @@ describe('LayoutTreeCrawler', () => {
|
76
|
76
|
expect(() => uut.crawl(node)).toThrow(new Error('Missing container data.name'));
|
77
|
77
|
});
|
78
|
78
|
|
79
|
|
- it('Containers: navigationStyle default obj', () => {
|
|
79
|
+ it('Containers: navigationOptions default obj', () => {
|
80
|
80
|
const MyContainer = class { };
|
81
|
81
|
|
82
|
82
|
const node = { type: LayoutTypes.Container, data: { name: 'theContainerName' } };
|
83
|
83
|
store.setOriginalContainerClassForName('theContainerName', MyContainer);
|
84
|
84
|
uut.crawl(node);
|
85
|
|
- expect(node.data.navigationStyle).toEqual({});
|
|
85
|
+ expect(node.data.navigationOptions).toEqual({});
|
86
|
86
|
});
|
87
|
87
|
});
|