Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Commit b0d67bf

Browse files
committed
fix(tests): updates for new tests from master
1 parent a628e4d commit b0d67bf

File tree

4 files changed

+29
-30
lines changed

4 files changed

+29
-30
lines changed

node-tests/blueprints/component-test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ describe('Blueprint: component', function() {
487487

488488
expect(_file('addon/templates/components/foo.hbs')).to.equal('{{yield}}');
489489

490-
expect(_file('app/components/foo.ts')).to.contain(
490+
expect(_file('app/components/foo.js')).to.contain(
491491
"export { default } from 'my-addon/components/foo';"
492492
);
493493

@@ -509,7 +509,7 @@ describe('Blueprint: component', function() {
509509

510510
expect(_file('addon/templates/components/x-foo.hbs')).to.equal('{{yield}}');
511511

512-
expect(_file('app/components/x-foo.ts')).to.contain(
512+
expect(_file('app/components/x-foo.js')).to.contain(
513513
"export { default } from 'my-addon/components/x-foo';"
514514
);
515515

@@ -531,7 +531,7 @@ describe('Blueprint: component', function() {
531531

532532
expect(_file('addon/templates/components/foo/x-foo.hbs')).to.equal('{{yield}}');
533533

534-
expect(_file('app/components/foo/x-foo.ts')).to.contain(
534+
expect(_file('app/components/foo/x-foo.js')).to.contain(
535535
"export { default } from 'my-addon/components/foo/x-foo';"
536536
);
537537

@@ -553,7 +553,7 @@ describe('Blueprint: component', function() {
553553

554554
expect(_file('tests/dummy/app/templates/components/x-foo.hbs')).to.equal('{{yield}}');
555555

556-
expect(_file('app/components/x-foo.ts')).to.not.exist;
556+
expect(_file('app/components/x-foo.js')).to.not.exist;
557557

558558
expect(_file('tests/unit/components/x-foo-test.ts')).to.not.exist;
559559
});
@@ -567,7 +567,7 @@ describe('Blueprint: component', function() {
567567

568568
expect(_file('tests/dummy/app/templates/components/foo/x-foo.hbs')).to.equal('{{yield}}');
569569

570-
expect(_file('app/components/foo/x-foo.ts')).to.not.exist;
570+
expect(_file('app/components/foo/x-foo.js')).to.not.exist;
571571

572572
expect(_file('tests/unit/components/foo/x-foo-test.ts')).to.not.exist;
573573
});
@@ -581,7 +581,7 @@ describe('Blueprint: component', function() {
581581

582582
expect(_file('addon/components/x-foo/template.hbs')).to.equal('{{yield}}');
583583

584-
expect(_file('app/components/x-foo/component.ts')).to.contain(
584+
expect(_file('app/components/x-foo/component.js')).to.contain(
585585
"export { default } from 'my-addon/components/x-foo/component';"
586586
);
587587

@@ -704,7 +704,7 @@ describe('Blueprint: component', function() {
704704

705705
expect(_file('lib/my-addon/addon/templates/components/foo.hbs')).to.equal('{{yield}}');
706706

707-
expect(_file('lib/my-addon/app/components/foo.ts')).to.contain(
707+
expect(_file('lib/my-addon/app/components/foo.js')).to.contain(
708708
"export { default } from 'my-addon/components/foo';"
709709
);
710710

@@ -726,7 +726,7 @@ describe('Blueprint: component', function() {
726726

727727
expect(_file('lib/my-addon/addon/templates/components/x-foo.hbs')).to.equal('{{yield}}');
728728

729-
expect(_file('lib/my-addon/app/components/x-foo.ts')).to.contain(
729+
expect(_file('lib/my-addon/app/components/x-foo.js')).to.contain(
730730
"export { default } from 'my-addon/components/x-foo';"
731731
);
732732

@@ -750,7 +750,7 @@ describe('Blueprint: component', function() {
750750
'{{yield}}'
751751
);
752752

753-
expect(_file('lib/my-addon/app/components/foo/x-foo.ts')).to.contain(
753+
expect(_file('lib/my-addon/app/components/foo/x-foo.js')).to.contain(
754754
"export { default } from 'my-addon/components/foo/x-foo';"
755755
);
756756

@@ -774,7 +774,7 @@ describe('Blueprint: component', function() {
774774

775775
expect(_file('lib/my-addon/addon/components/x-foo/template.hbs')).to.equal('{{yield}}');
776776

777-
expect(_file('lib/my-addon/app/components/x-foo/component.ts')).to.contain(
777+
expect(_file('lib/my-addon/app/components/x-foo/component.js')).to.contain(
778778
"export { default } from 'my-addon/components/x-foo/component';"
779779
);
780780

@@ -801,7 +801,7 @@ describe('Blueprint: component', function() {
801801
'{{yield}}'
802802
);
803803

804-
expect(_file('lib/my-addon/app/components/foo/x-foo/component.ts')).to.contain(
804+
expect(_file('lib/my-addon/app/components/foo/x-foo/component.js')).to.contain(
805805
"export { default } from 'my-addon/components/foo/x-foo/component';"
806806
);
807807

node-tests/blueprints/initializer-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('Blueprint: initializer', function() {
9090
return emberGenerateDestroy(['initializer', 'foo'], _file => {
9191
expect(_file('addon/initializers/foo.ts')).to.equal(fixture('initializer/initializer.ts'));
9292

93-
expect(_file('app/initializers/foo.ts')).to.contain(
93+
expect(_file('app/initializers/foo.js')).to.contain(
9494
"export { default, initialize } from 'my-addon/initializers/foo';"
9595
);
9696

@@ -104,7 +104,7 @@ describe('Blueprint: initializer', function() {
104104
fixture('initializer/initializer-nested.ts')
105105
);
106106

107-
expect(_file('app/initializers/foo/bar.ts')).to.contain(
107+
expect(_file('app/initializers/foo/bar.js')).to.contain(
108108
"export { default, initialize } from 'my-addon/initializers/foo/bar';"
109109
);
110110

@@ -118,7 +118,7 @@ describe('Blueprint: initializer', function() {
118118
fixture('initializer/initializer.ts')
119119
);
120120

121-
expect(_file('app/initializers/foo.ts')).to.not.exist;
121+
expect(_file('app/initializers/foo.js')).to.not.exist;
122122

123123
expect(_file('tests/unit/initializers/foo-test.ts')).to.not.exist;
124124
});
@@ -130,7 +130,7 @@ describe('Blueprint: initializer', function() {
130130
fixture('initializer/initializer-nested.ts')
131131
);
132132

133-
expect(_file('app/initializers/foo/bar.ts')).to.not.exist;
133+
expect(_file('app/initializers/foo/bar.js')).to.not.exist;
134134

135135
expect(_file('tests/unit/initializers/foo/bar-test.ts')).to.not.exist;
136136
});
@@ -150,7 +150,7 @@ describe('Blueprint: initializer', function() {
150150
fixture('initializer/initializer.ts')
151151
);
152152

153-
expect(_file('lib/my-addon/app/initializers/foo.ts')).to.contain(
153+
expect(_file('lib/my-addon/app/initializers/foo.js')).to.contain(
154154
"export { default, initialize } from 'my-addon/initializers/foo';"
155155
);
156156

@@ -164,7 +164,7 @@ describe('Blueprint: initializer', function() {
164164
fixture('initializer/initializer-nested.ts')
165165
);
166166

167-
expect(_file('lib/my-addon/app/initializers/foo/bar.ts')).to.contain(
167+
expect(_file('lib/my-addon/app/initializers/foo/bar.js')).to.contain(
168168
"export { default, initialize } from 'my-addon/initializers/foo/bar';"
169169
);
170170

node-tests/blueprints/route-test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,11 @@ describe('Blueprint: route', function() {
222222

223223
expect(_file('addon/templates/foo.hbs')).to.equal('{{outlet}}');
224224

225-
expect(_file('app/routes/foo.ts')).to.contain(
225+
expect(_file('app/routes/foo.js')).to.contain(
226226
"export { default } from 'my-addon/routes/foo';"
227227
);
228228

229-
expect(_file('app/templates/foo.ts')).to.contain(
229+
expect(_file('app/templates/foo.js')).to.contain(
230230
"export { default } from 'my-addon/templates/foo';"
231231
);
232232

@@ -244,11 +244,11 @@ describe('Blueprint: route', function() {
244244

245245
expect(_file('addon/templates/foo/bar.hbs')).to.equal('{{outlet}}');
246246

247-
expect(_file('app/routes/foo/bar.ts')).to.contain(
247+
expect(_file('app/routes/foo/bar.js')).to.contain(
248248
"export { default } from 'my-addon/routes/foo/bar';"
249249
);
250250

251-
expect(_file('app/templates/foo/bar.ts')).to.contain(
251+
expect(_file('app/templates/foo/bar.js')).to.contain(
252252
"export { default } from 'my-addon/templates/foo/bar';"
253253
);
254254

@@ -268,7 +268,7 @@ describe('Blueprint: route', function() {
268268

269269
expect(_file('tests/dummy/app/templates/foo.hbs')).to.equal('{{outlet}}');
270270

271-
expect(_file('app/routes/foo.ts')).to.not.exist;
271+
expect(_file('app/routes/foo.js')).to.not.exist;
272272
expect(_file('app/templates/foo.hbs')).to.not.exist;
273273
expect(_file('tests/unit/routes/foo-test.ts')).to.not.exist;
274274

@@ -286,7 +286,7 @@ describe('Blueprint: route', function() {
286286

287287
expect(_file('tests/dummy/app/templates/foo/bar.hbs')).to.equal('{{outlet}}');
288288

289-
expect(_file('app/routes/foo/bar.ts')).to.not.exist;
289+
expect(_file('app/routes/foo/bar.js')).to.not.exist;
290290
expect(_file('app/templates/foo/bar.hbs')).to.not.exist;
291291
expect(_file('tests/unit/routes/foo/bar-test.ts')).to.not.exist;
292292

@@ -304,11 +304,11 @@ describe('Blueprint: route', function() {
304304

305305
expect(_file('addon/foo/template.hbs')).to.equal('{{outlet}}');
306306

307-
expect(_file('app/foo/route.ts')).to.contain(
307+
expect(_file('app/foo/route.js')).to.contain(
308308
"export { default } from 'my-addon/foo/route';"
309309
);
310310

311-
expect(_file('app/foo/template.ts')).to.contain(
311+
expect(_file('app/foo/template.js')).to.contain(
312312
"export { default } from 'my-addon/foo/template';"
313313
);
314314

@@ -576,11 +576,11 @@ describe('Blueprint: route', function() {
576576

577577
expect(_file('lib/my-addon/addon/templates/foo.hbs')).to.equal('{{outlet}}');
578578

579-
expect(_file('lib/my-addon/app/routes/foo.ts')).to.contain(
579+
expect(_file('lib/my-addon/app/routes/foo.js')).to.contain(
580580
"export { default } from 'my-addon/routes/foo';"
581581
);
582582

583-
expect(_file('lib/my-addon/app/templates/foo.ts')).to.contain(
583+
expect(_file('lib/my-addon/app/templates/foo.js')).to.contain(
584584
"export { default } from 'my-addon/templates/foo';"
585585
);
586586

@@ -596,11 +596,11 @@ describe('Blueprint: route', function() {
596596

597597
expect(_file('lib/my-addon/addon/templates/foo/bar.hbs')).to.equal('{{outlet}}');
598598

599-
expect(_file('lib/my-addon/app/routes/foo/bar.ts')).to.contain(
599+
expect(_file('lib/my-addon/app/routes/foo/bar.js')).to.contain(
600600
"export { default } from 'my-addon/routes/foo/bar';"
601601
);
602602

603-
expect(_file('lib/my-addon/app/templates/foo/bar.ts')).to.contain(
603+
expect(_file('lib/my-addon/app/templates/foo/bar.js')).to.contain(
604604
"export { default } from 'my-addon/templates/foo/bar';"
605605
);
606606

node-tests/fixtures/helper-addon.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)