mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 13:18:53 +00:00
Fix test callbacks; deliberately break a test for Travis
This commit is contained in:
parent
b1e8f16639
commit
5f218680bc
2 changed files with 5 additions and 5 deletions
|
|
@ -54,7 +54,7 @@ gulp.task('test:common', ['test:prepare:build'], (cb) => {
|
|||
fail: testCount(stderr, /(\d+) failing/),
|
||||
pend: testCount(stdout, /(\d+) pending/)
|
||||
});
|
||||
cb();
|
||||
cb(err);
|
||||
}
|
||||
);
|
||||
pipe(runner);
|
||||
|
|
@ -71,7 +71,7 @@ gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
|
|||
fail: testCount(stderr, /(\d+) failing/),
|
||||
pend: testCount(stdout, /(\d+) pending/)
|
||||
});
|
||||
cb();
|
||||
cb(err);
|
||||
}
|
||||
);
|
||||
pipe(runner);
|
||||
|
|
@ -87,7 +87,7 @@ gulp.task('test:karma', ['test:prepare:build'], (cb) => {
|
|||
fail: testCount(stdout, /(\d+) tests failed/),
|
||||
pend: testCount(stdout, /(\d+) tests skipped/)
|
||||
});
|
||||
cb();
|
||||
cb(err);
|
||||
}
|
||||
);
|
||||
pipe(runner);
|
||||
|
|
@ -118,7 +118,7 @@ gulp.task('test:e2e', ['test:prepare'], (cb) => {
|
|||
pend: 0
|
||||
});
|
||||
support.forEach(kill);
|
||||
cb();
|
||||
cb(err);
|
||||
}
|
||||
);
|
||||
pipe(runner);
|
||||
|
|
|
|||
|
|
@ -992,7 +992,7 @@ describe 'Helper', ->
|
|||
it 'counts mounts', ->
|
||||
mounts = {}
|
||||
expect(shared.countMounts(null, mounts)).to.eql 0
|
||||
expect(shared.countMounts(1, mounts)).to.eql 1
|
||||
expect(shared.countMounts(1, mounts)).to.eql 5
|
||||
|
||||
mounts = { "Dragon-Red": true, "Wolf-Base": true }
|
||||
expect(shared.countMounts(null, mounts)).to.eql 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue