Skip to content

Commit 172991b

Browse files
committed
Update fixture js contents to be valid
- This will be essential to minimize warnings in tests once we use jscodeshift (which parses js and thus fails in those cases)
1 parent d4ed1a2 commit 172991b

10 files changed

Lines changed: 100 additions & 100 deletions

File tree

test/fixtures/classic-acceptance/input.js

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
11
module.exports = {
22
'app': {
3-
'app.js': 'app.js',
4-
'router.js': 'router.js',
3+
'app.js': '"app.js"',
4+
'router.js': '"router.js"',
55
'index.html': 'index.html contents',
66
'components': {
7-
'foo-bar.js': 'foo-bar component',
7+
'foo-bar.js': '"foo-bar component"',
88
'baz-derp': {
9-
'component.js': 'baz-derp component',
9+
'component.js': '"baz-derp component"',
1010
'template.hbs': 'baz-derp template'
1111
},
1212
'post-display': {
13-
'component.js': 'post-display component',
13+
'component.js': '"post-display component"',
1414
'template.hbs': 'post-display component template\n{{post-footer}}'
1515
},
1616
'post-footer': {
17-
'component.js': 'post-footer component',
17+
'component.js': '"post-footer component"',
1818
'template.hbs': 'post-footer component template'
1919
}
2020
},
2121
'helpers': {
22-
'i18n.js': 'i18n helper',
23-
'blerg.js': 'blerg helper',
24-
'main-greeting-text.js': 'main-greeting-text helper',
25-
'show-default-title.js': 'show-default-title helper'
22+
'i18n.js': '"i18n helper"',
23+
'blerg.js': '"blerg helper"',
24+
'main-greeting-text.js': '"main-greeting-text helper"',
25+
'show-default-title.js': '"show-default-title helper"'
2626
},
2727
'routes': {
28-
'index.js': 'index route',
28+
'index.js': '"index route"',
2929
'posts': {
30-
'index.js': 'posts/index route',
30+
'index.js': '"posts/index route"',
3131
'post': {
32-
'index.js': 'posts/post/index route',
33-
'edit.js': 'posts/post/edit route'
32+
'index.js': '"posts/post/index route"',
33+
'edit.js': '"posts/post/edit route"'
3434
},
35-
'new.js': 'posts/new route'
35+
'new.js': '"posts/new route"'
3636
}
3737
},
3838
'adapters': {
39-
'application.js': 'application adapter',
40-
'post.js': 'post adapter',
41-
'comment.js': 'comment adapter'
39+
'application.js': '"application adapter"',
40+
'post.js': '"post adapter"',
41+
'comment.js': '"comment adapter"'
4242
},
4343
'serializers': {
44-
'application.js': 'application serializer',
45-
'post.js': 'post serializer',
46-
'comment.js': 'comment serializer'
44+
'application.js': '"application serializer"',
45+
'post.js': '"post serializer"',
46+
'comment.js': '"comment serializer"'
4747
},
4848
'models': {
49-
'post.js': 'post model',
50-
'comment.js': 'comment model',
51-
'tag.js': 'tag model'
49+
'post.js': '"post model"',
50+
'comment.js': '"comment model"',
51+
'tag.js': '"tag model"'
5252
},
5353
'initializers': {
54-
'blah.js': 'blah initializer',
55-
'derp.js': 'derp initializer'
54+
'blah.js': '"blah initializer"',
55+
'derp.js': '"derp initializer"'
5656
},
5757
'instance-initializers': {
58-
'blammo.js': 'blammo instance initializer'
58+
'blammo.js': '"blammo instance initializer"'
5959
},
6060
'controllers': {
61-
'index.js': 'index controller',
61+
'index.js': '"index controller"',
6262
'posts': {
63-
'index.js': 'posts/index controller',
63+
'index.js': '"posts/index controller"',
6464
'post': {
65-
'index.js': 'posts/post/index controller',
66-
'edit.js': 'posts/post/edit controller'
65+
'index.js': '"posts/post/index controller"',
66+
'edit.js': '"posts/post/edit controller"'
6767
},
68-
'new.js': 'posts/new controller'
68+
'new.js': '"posts/new controller"'
6969
}
7070
},
7171
'templates': {
@@ -84,51 +84,51 @@ module.exports = {
8484
}
8585
},
8686
'transforms': {
87-
'date.js': 'custom date transform'
87+
'date.js': '"custom date transform"'
8888
},
8989
'mixins': {
90-
'foo.js': 'foo mixin'
90+
'foo.js': '"foo mixin"'
9191
},
9292
'services': {
93-
'ajax.js': 'ajax service'
93+
'ajax.js': '"ajax service"'
9494
},
9595
'validators': {
96-
'blahzorz.js': 'blahzorz validator'
96+
'blahzorz.js': '"blahzorz validator"'
9797
}
9898
},
9999

100100
'tests': {
101101
'acceptance': {
102-
'post-test.js': 'post acceptance test'
102+
'post-test.js': '"post acceptance test"'
103103
},
104104
'unit': {
105105
'mixins': {
106-
'foo-test.js': 'foo mixin unit test'
106+
'foo-test.js': '"foo mixin unit test"'
107107
},
108108
'service': {
109-
'ajax-test.js': 'ajax service unit test'
109+
'ajax-test.js': '"ajax service unit test"'
110110
},
111111
'routes': {
112112
'posts': {
113-
'index-test.js': 'posts/index unit test'
113+
'index-test.js': '"posts/index unit test"'
114114
}
115115
},
116116
'validators': {
117-
'blahzorz-test.js': 'blahzorz validator test'
117+
'blahzorz-test.js': '"blahzorz validator test"'
118118
}
119119
},
120120
'integration': {
121121
'routes': {
122122
'posts': {
123-
'index-test.js': 'posts/index integration test'
123+
'index-test.js': '"posts/index integration test"'
124124
}
125125
},
126126
'components': {
127-
'post-display-test.js': 'post-display component integration test',
128-
'post-footer-test.js': 'post-footer integration test'
127+
'post-display-test.js': '"post-display component integration test"',
128+
'post-footer-test.js': '"post-footer integration test"'
129129
},
130130
'helpers': {
131-
'show-default-title-test.js': 'show-default-title helper integration test'
131+
'show-default-title-test.js': '"show-default-title helper integration test"'
132132
}
133133
}
134134
}
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
module.exports = {
22
'src': {
3-
'main.js': 'app.js',
4-
'router.js': 'router.js',
3+
'main.js': '"app.js"',
4+
'router.js': '"router.js"',
55
'init': {
66
'initializers': {
7-
'blah.js': 'blah initializer',
8-
'derp.js': 'derp initializer'
7+
'blah.js': '"blah initializer"',
8+
'derp.js': '"derp initializer"'
99
},
1010
'instance-initializers': {
11-
'blammo.js': 'blammo instance initializer'
11+
'blammo.js': '"blammo instance initializer"'
1212
}
1313
},
1414
'ui': {
1515
'index.html': 'index.html contents',
1616
'components': {
1717
'foo-bar': {
18-
'component.js': 'foo-bar component',
18+
'component.js': '"foo-bar component"',
1919
'template.hbs': 'foo-bar component template'
2020
},
2121
'baz-derp': {
22-
'component.js': 'baz-derp component',
22+
'component.js': '"baz-derp component"',
2323
'template.hbs': 'baz-derp template'
2424
},
25-
'i18n.js': 'i18n helper',
26-
'blerg.js': 'blerg helper'
25+
'i18n.js': '"i18n helper"',
26+
'blerg.js': '"blerg helper"'
2727
},
2828
'routes': {
2929
'index': {
3030
'-components': {
31-
'main-greeting-text.js': 'main-greeting-text helper'
31+
'main-greeting-text.js': '"main-greeting-text helper"'
3232
},
33-
'controller.js': 'index controller',
34-
'route.js': 'index route',
33+
'controller.js': '"index controller"',
34+
'route.js': '"index route"',
3535
'template.hbs': 'index route template {{main-greeting-text}}'
3636
},
3737
'posts': {
3838
'index': {
39-
'controller.js': 'posts/index controller',
40-
'route.js': 'posts/index route',
39+
'controller.js': '"posts/index controller"',
40+
'route.js': '"posts/index route"',
4141
'template.hbs': 'posts/index route template',
42-
'route-unit-test.js': 'posts/index unit test',
43-
'route-integration-test.js': 'posts/index integration test'
42+
'route-unit-test.js': '"posts/index unit test"',
43+
'route-integration-test.js': '"posts/index integration test"'
4444
},
4545
'show': {
4646
'template.hbs': 'posts/post/show route template'
@@ -50,34 +50,34 @@ module.exports = {
5050
'-components': {
5151
'post-display': {
5252
'post-footer': {
53-
'component.js': 'post-footer component',
53+
'component.js': '"post-footer component"',
5454
'template.hbs': 'post-footer component template',
55-
'component-integration-test.js': 'post-footer integration test'
55+
'component-integration-test.js': '"post-footer integration test"'
5656
},
57-
'component.js': 'post-display component',
57+
'component.js': '"post-display component"',
5858
'template.hbs': 'post-display component template\n{{post-footer}}',
59-
'component-integration-test.js': 'post-display component integration test'
59+
'component-integration-test.js': '"post-display component integration test"'
6060
}
6161
},
62-
'controller.js': 'posts/post/index controller',
63-
'route.js': 'posts/post/index route',
62+
'controller.js': '"posts/post/index controller"',
63+
'route.js': '"posts/post/index route"',
6464
'template.hbs': 'posts/post/index route template\n{{post-display}}'
6565
},
6666
'edit': {
67-
'controller.js': 'posts/post/edit controller',
68-
'route.js': 'posts/post/edit route',
67+
'controller.js': '"posts/post/edit controller"',
68+
'route.js': '"posts/post/edit route"',
6969
'template.hbs': 'posts/post/edit route template'
7070
}
7171
},
7272
'new': {
7373
'-components': {
7474
'show-default-title': {
75-
'helper.js': 'show-default-title helper',
76-
'helper-integration-test.js': 'show-default-title helper integration test'
75+
'helper.js': '"show-default-title helper"',
76+
'helper-integration-test.js': '"show-default-title helper integration test"'
7777
}
7878
},
79-
'controller.js': 'posts/new controller',
80-
'route.js': 'posts/new route',
79+
'controller.js': '"posts/new controller"',
80+
'route.js': '"posts/new route"',
8181
'template.hbs': 'posts/new route template {{show-default-title}}'
8282
}
8383
}
@@ -86,49 +86,49 @@ module.exports = {
8686
'data': {
8787
'models': {
8888
'application': {
89-
'adapter.js': 'application adapter',
90-
'serializer.js': 'application serializer'
89+
'adapter.js': '"application adapter"',
90+
'serializer.js': '"application serializer"'
9191
},
9292
'post': {
93-
'adapter.js': 'post adapter',
94-
'serializer.js': 'post serializer',
95-
'model.js': 'post model'
93+
'adapter.js': '"post adapter"',
94+
'serializer.js': '"post serializer"',
95+
'model.js': '"post model"'
9696
},
9797
'comment': {
98-
'adapter.js': 'comment adapter',
99-
'serializer.js': 'comment serializer',
100-
'model.js': 'comment model'
98+
'adapter.js': '"comment adapter"',
99+
'serializer.js': '"comment serializer"',
100+
'model.js': '"comment model"'
101101
},
102-
'tag.js': 'tag model'
102+
'tag.js': '"tag model"'
103103
},
104104
transforms: {
105-
'date.js': 'custom date transform'
105+
'date.js': '"custom date transform"'
106106
}
107107
},
108108
'services': {
109109
'ajax': {
110-
'service-unit-test.js': 'ajax service unit test',
111-
'service.js': 'ajax service'
110+
'service-unit-test.js': '"ajax service unit test"',
111+
'service.js': '"ajax service"'
112112
}
113113
},
114114
'utils': {
115115
'mixins': {
116116
'foo': {
117-
'mixin.js': 'foo mixin',
118-
'mixin-unit-test.js': 'foo mixin unit test'
117+
'mixin.js': '"foo mixin"',
118+
'mixin-unit-test.js': '"foo mixin unit test"'
119119
}
120120
}
121121
},
122122
'validators': {
123123
'blahzorz': {
124-
'validator.js': 'blahzorz validator',
125-
'validator-unit-test.js': 'blahzorz validator test'
124+
'validator.js': '"blahzorz validator"',
125+
'validator-unit-test.js': '"blahzorz validator test"'
126126
}
127127
}
128128
},
129129
'tests': {
130130
'acceptance': {
131-
'post-test.js': 'post acceptance test'
131+
'post-test.js': '"post acceptance test"'
132132
}
133133
}
134134
};

test/fixtures/classic-named-exports/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
tests: {
1313
integration: {
1414
helpers: {
15-
'capitalize-test.js': 'capitalize helper test'
15+
'capitalize-test.js': '"capitalize helper test"'
1616
}
1717
}
1818
}

test/fixtures/classic-named-exports/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
'titleize.js': 'export const helper = helper(function() { });',
88
'capitalize': {
99
'helper.js': 'export default helper(function() { });',
10-
'helper-integration-test.js': 'capitalize helper test'
10+
'helper-integration-test.js': '"capitalize helper test"'
1111
}
1212
}
1313
}

test/fixtures/classic-private-components/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
tests: {
1616
integration: {
1717
components: {
18-
'x-bar-test.js': 'x-bar component test'
18+
'x-bar-test.js': '"x-bar component test"'
1919
}
2020
}
2121
}

test/fixtures/classic-private-components/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
'template.hbs': 'x-foo template: {{x-bar}}',
77
'x-bar': {
88
'template.hbs': 'x-bar template',
9-
'component-integration-test.js': 'x-bar component test'
9+
'component-integration-test.js': '"x-bar component test"'
1010
}
1111
}
1212
},

test/fixtures/classic-view-support/input.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
'app': {
33
'views': {
4-
'foo.js': 'foo view no template invocation',
5-
'bar.js': 'bar view with template invocation'
4+
'foo.js': '"foo view no template invocation"',
5+
'bar.js': '"bar view with template invocation"'
66
},
77
'templates': {
88
'index.hbs': '{{view "bar"}}',

0 commit comments

Comments
 (0)