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

Commit 62cbe11

Browse files
authored
Merge pull request #553 from ember-template-lint/dependabot/npm_and_yarn/ember-cli-3.15.1
Bump ember-cli from 3.3.0 to 3.15.1
2 parents f97bc36 + c077d88 commit 62cbe11

3 files changed

Lines changed: 977 additions & 1421 deletions

File tree

node-tests/blueprints/ember-cli-template-lint-test.js

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const chai = require('ember-cli-blueprint-test-helpers/chai');
1010
const expect = chai.expect;
1111
const file = chai.file;
1212

13+
const td = require('testdouble');
14+
const MockUI = require('console-ui/mock');
15+
1316
describe('Acceptance: ember generate and destroy ember-cli-template-lint', function() {
1417
setupTestHooks(this);
1518

@@ -22,21 +25,32 @@ describe('Acceptance: ember generate and destroy ember-cli-template-lint', funct
2225
delete process.env.FORCE_LOCALIZED_FOR_TESTING;
2326
});
2427

28+
let prompt;
29+
beforeEach(function() {
30+
prompt = td.function();
31+
td.replace(MockUI.prototype, 'prompt', prompt);
32+
});
33+
34+
afterEach(function() {
35+
td.reset();
36+
});
37+
2538
it('ember-cli-template-lint without localization framework', co.wrap(function *() {
26-
let args = ['ember-cli-template-lint'];
39+
td.when(prompt(td.matchers.anything())).thenResolve({ answer: 'overwrite', deleteFiles: 'all' });
2740

2841
yield emberNew();
29-
yield emberGenerate(args);
42+
yield emberGenerate(['ember-cli-template-lint']);
3043

3144
expect(file('.template-lintrc.js')).to.contain('extends: \'octane\'');
3245
}));
3346

3447
it('ember-cli-template-lint with localization framework', co.wrap(function *() {
3548
process.env.FORCE_LOCALIZED_FOR_TESTING = true;
36-
let args = ['ember-cli-template-lint'];
49+
50+
td.when(prompt(td.matchers.anything())).thenResolve({ answer: 'overwrite', deleteFiles: 'all' });
3751

3852
yield emberNew();
39-
yield emberGenerate(args);
53+
yield emberGenerate(['ember-cli-template-lint']);
4054

4155
expect(file('.template-lintrc.js')).to.contain('extends: \'octane\'');
4256
expect(file('.template-lintrc.js')).to.contain('\'no-bare-strings\': true');

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"broccoli-test-helper": "^2.0.0",
4747
"chai": "^4.1.2",
4848
"co": "^4.6.0",
49-
"ember-cli": "~3.3.0",
49+
"console-ui": "^3.1.1",
50+
"ember-cli": "~3.15.1",
5051
"ember-cli-babel": "^7.1.0",
5152
"ember-cli-blueprint-test-helpers": "^0.19.1",
5253
"ember-cli-dependency-checker": "^3.0.0",
@@ -67,7 +68,8 @@
6768
"mocha": "^7.0.0",
6869
"mocha-eslint": "^5.0.0",
6970
"mocha-only-detector": "^1.0.0",
70-
"qunit-dom": "^0.9.2"
71+
"qunit-dom": "^0.9.2",
72+
"testdouble": "^3.12.5"
7173
},
7274
"engines": {
7375
"node": "10.* || >=12.*"

0 commit comments

Comments
 (0)