Skip to content

Commit 7e99ab0

Browse files
authored
Merge pull request #210 from typed-ember/update-project
Update project
2 parents 7cfc25a + 603c91c commit 7e99ab0

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

blueprints/-addon-import.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env node */
12
'use strict';
23

34
var stringUtil = require('ember-cli-string-utils');

blueprints/test-framework-detector.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env node */
12
'use strict';
23

34
const fs = require('fs');

node-tests/blueprints/component-test-test.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,9 @@ describe('Blueprint: component-test', function() {
3838
});
3939
});
4040

41-
describe('with usePods=true', function() {
42-
beforeEach(function() {
43-
fs.writeFileSync(
44-
'.ember-cli',
45-
`{
46-
"disableAnalytics": false,
47-
"usePods": true
48-
}`
49-
);
50-
});
51-
41+
describe('with --pod', function() {
5242
it('component-test x-foo', function() {
53-
return emberGenerateDestroy(['component-test', 'x-foo'], _file => {
43+
return emberGenerateDestroy(['--pod', 'component-test', 'x-foo'], _file => {
5444
expect(_file('tests/integration/components/x-foo/component-test.ts')).to.equal(
5545
fixture('component-test/default.ts')
5646
);

node-tests/fixtures/acceptance-test/mocha.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, beforeEach, afterEach } from 'mocha';
22
import { expect } from 'chai';
33
import startApp from 'my-app/tests/helpers/start-app';
4-
import destroyApp from 'my-app/tests/helpers/destroy-app';
4+
import { run } from '@ember/runloop';
55

66
describe('Acceptance | foo', function() {
77
let application;
@@ -11,7 +11,7 @@ describe('Acceptance | foo', function() {
1111
});
1212

1313
afterEach(function() {
14-
destroyApp(application);
14+
run(application, 'destroy');
1515
});
1616

1717
it('can visit /foo', function() {

0 commit comments

Comments
 (0)