Skip to content

Commit d90f5a9

Browse files
author
Kelly Selden
committed
uncomment assertCodemodRan
1 parent 67ff737 commit d90f5a9

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

test/helpers/assertions.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ module.exports.assertNoUnstaged = function(status) {
66
expect(status).to.not.match(/^.\w/m);
77
};
88

9-
module.exports.assertNoStaged = function(status) {
10-
expect(status).to.not.match(/^\w/m);
11-
};
12-
139
module.exports.assertCodemodRan = function(status) {
14-
// codemod changed locally, no change upstream
15-
expect(status).to.match(/^M {2}.*app\/controllers\/application\.js$/m);
16-
17-
// codemod changed locally, also changed upstream
18-
expect(status).to.match(/^M {2}.*app\/router\.js$/m);
10+
expect(status).to.match(/^A {2}.*/m);
1911
};

test/tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const {
99
fixtureCompare: _fixtureCompare
1010
} = require('git-fixtures');
1111
const {
12-
assertNoUnstaged
13-
// assertCodemodRan
12+
assertNoUnstaged,
13+
assertCodemodRan
1414
} = require('./helpers/assertions');
1515
const manifest = require('../manifest');
1616

@@ -120,7 +120,7 @@ describe('runs codemods', function() {
120120
});
121121

122122
assertNoUnstaged(status);
123-
// assertCodemodRan(status);
123+
assertCodemodRan(status);
124124
});
125125
}
126126
});

0 commit comments

Comments
 (0)