-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdefault.js
56 lines (53 loc) · 1.03 KB
/
default.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
var React = require('react');
class FirstComponent extends React.Component {
render() {
return React.DOM.div();
}
}
class SecondComponent extends React.Component {
render() {
return React.DOM.div();
}
}
module.exports = {
components: {
FirstComponent: {
class: FirstComponent,
fixtures: {
'default': {
myProp: false,
nested: {
foo: 'bar',
shouldBeCloned: {}
},
children: [
React.createElement('span', {
key: '1',
children: 'test child',
customProp: function() {}
})
],
state: {
somethingHappened: false
}
},
'error': {}
}
},
SecondComponent: {
class: SecondComponent,
fixtures: {
'index': {
myProp: true,
state: {
somethingHappened: true
}
}
}
}
},
router: {
routeLink: function() {},
goTo: function() {}
}
};