Skip to content

Commit 09ac581

Browse files
authored
Merge pull request #211 from nobso/report-for-multiple-selectors
fixing the CI report for mutiple CSS selectors
2 parents 1d9dc7d + c91d00a commit 09ac581

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gulp/tasks/compare.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ gulp.task('compare', function (done) {
3737

3838
_.each(compareConfig.testPairs, function (pair, key) {
3939
pair.testStatus = "running";
40-
testPairsLength = !testPairsLength && compareConfig.testPairs.length;
40+
41+
if (!testPairsLength) {
42+
testPairsLength = Object.keys(compareConfig.testPairs).length;
43+
}
4144

4245

4346
var referencePath = path.join(paths.backstop, pair.reference);

0 commit comments

Comments
 (0)