-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathdefault-blueprint-test.js
More file actions
44 lines (28 loc) · 1.11 KB
/
default-blueprint-test.js
File metadata and controls
44 lines (28 loc) · 1.11 KB
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
'use strict';
const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
const { emberGenerate, emberNew, setupTestHooks } = blueprintHelpers;
const MockUI = require('console-ui/mock');
const expect = require('ember-cli-blueprint-test-helpers/chai').expect;
describe.only('Acceptance: ember generate and destroy default-blueprint', function() {
setupTestHooks(this);
it('default-blueprint foo', async function() {
let args = ['ember-cli-fastboot'];
// process.stdout.on('data', function(data) {
// console.log('face', data.toString());
// process.stdin.writeLine('y');
// // process.stdout.write(data);
// });
// pass any additional command line options in the arguments array
await emberNew();
// let ui = new MockUI();
// let interval = setInterval(() => {
// ui.inputStream.write('y\n\r');
// }, 2000);
const ember = await emberGenerate(args);
setTimeout(() => {
ember.inputStream.write('y\n');
}, 4000)
// clearInterval(interval);
// expect(file('config/targets.js')).to.contain(`node: 'current'`);
});
});