Skip to content

Commit 21d3cf2

Browse files
author
Kelly Selden
committed
make sure isGitClean on certain tests
1 parent 70810e0 commit 21d3cf2

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

test/integration/index-test.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,14 @@ describe(function() {
214214
let open = sinon.stub(utils, 'open');
215215

216216
let {
217-
result,
218-
status
217+
result
219218
} = await merge({
220219
fixturesPath: 'test/fixtures/app/local',
221220
commitMessage: 'my-app',
222221
compareOnly: true
223222
});
224223

225-
assertNoUnstaged(status);
224+
expect(await isGitClean({ cwd: tmpPath })).to.be.ok;
226225

227226
expect(result, 'don\'t accidentally print anything to the console').to.be.undefined;
228227

@@ -241,6 +240,8 @@ describe(function() {
241240
statsOnly: true
242241
});
243242

243+
expect(await isGitClean({ cwd: tmpPath })).to.be.ok;
244+
244245
expect(result).to.equal(`project options: app, welcome
245246
from version: 1.13.15
246247
to version: 2.18.2
@@ -251,16 +252,15 @@ applicable codemods: `);
251252

252253
it('shows stats only', async function() {
253254
let {
254-
result,
255-
status
255+
result
256256
} = await merge({
257257
fixturesPath: 'test/fixtures/app/merge',
258258
commitMessage: 'my-app',
259259
to: '3.15.0',
260260
statsOnly: true
261261
});
262262

263-
assertNoStaged(status);
263+
expect(await isGitClean({ cwd: tmpPath })).to.be.ok;
264264

265265
expect(result).to.equal(`project options: app, welcome
266266
from version: 3.11.0-beta.1
@@ -272,15 +272,14 @@ applicable codemods: ember-modules-codemod, ember-qunit-codemod, ember-test-help
272272

273273
it('lists codemods', async function() {
274274
let {
275-
result,
276-
status
275+
result
277276
} = await merge({
278277
fixturesPath: 'test/fixtures/codemod/local',
279278
commitMessage: 'my-app',
280279
listCodemods: true
281280
});
282281

283-
assertNoStaged(status);
282+
expect(await isGitClean({ cwd: tmpPath })).to.be.ok;
284283

285284
// I'm not asserting the entire list because it can be different
286285
// depending on which node version the tests are running under.
@@ -289,8 +288,7 @@ applicable codemods: ember-modules-codemod, ember-qunit-codemod, ember-test-help
289288

290289
it('accepts codemods via json string', async function() {
291290
let {
292-
result,
293-
status
291+
result
294292
} = await merge({
295293
fixturesPath: 'test/fixtures/codemod/local',
296294
commitMessage: 'my-app',
@@ -307,7 +305,7 @@ applicable codemods: ember-modules-codemod, ember-qunit-codemod, ember-test-help
307305
})
308306
});
309307

310-
assertNoStaged(status);
308+
expect(await isGitClean({ cwd: tmpPath })).to.be.ok;
311309

312310
expect(JSON.parse(result)).to.have.own.property('test-codemod-json');
313311
});

0 commit comments

Comments
 (0)