Skip to content

Commit ef5469a

Browse files
author
Kelly Selden
committed
failing test for all up-to-date
1 parent eb40a02 commit ef5469a

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

test/acceptance/ember-cli-update-test.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const {
1010
fixtureCompare: _fixtureCompare,
1111
commit
1212
} = require('git-fixtures');
13+
const { isGitClean } = require('git-diff-apply');
1314
const {
1415
assertNormalUpdate,
1516
assertNoUnstaged,
@@ -232,6 +233,37 @@ describe(function() {
232233
assertNoUnstaged(status);
233234
});
234235

236+
it('has all up-to-date blueprints', async function() {
237+
let {
238+
ps,
239+
promise
240+
} = await merge({
241+
fixturesPath: 'test/fixtures/blueprint/app/remote-app/merge',
242+
commitMessage: 'my-app'
243+
});
244+
245+
ps.stdout.pipe(process.stdout);
246+
247+
await new Promise(resolve => {
248+
function stdoutData(data) {
249+
let str = data.toString();
250+
if (str.includes('All blueprints are up-to-date!')) {
251+
ps.stdout.removeListener('data', stdoutData);
252+
resolve();
253+
}
254+
}
255+
ps.stdout.on('data', stdoutData);
256+
});
257+
258+
let {
259+
status
260+
} = await promise;
261+
262+
expect(await isGitClean({ cwd: tmpPath })).to.be.ok;
263+
264+
expect(status).to.equal('');
265+
});
266+
235267
it('can pick from multiple blueprints', async function() {
236268
this.timeout(15 * 60 * 1000);
237269

0 commit comments

Comments
 (0)