Skip to content

Commit

Permalink
ci: ensure tests fail build
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Aug 11, 2020
1 parent 9c9db3c commit 67cd798
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions test/permutations/index.js
Expand Up @@ -105,10 +105,10 @@ Object.keys(options).forEach(async (option) => {
fs.writeFileSync(path.join(__dirname, `${option}.spec.js`), contents, 'utf-8');

execSync('npx karma start ' + path.join(__dirname, 'karma.conf.js'), {stdio: 'inherit'});
} catch(e) {
// for some reason a failing test/exec does not error the program
console.log(e);
return process.exit(1);
}
} catch(e) {
// for some reason a failing test/exec does not error the program
console.log(e);
return process.exit(1);
}
});
4 changes: 2 additions & 2 deletions test/unit/sprite.spec.js
Expand Up @@ -114,11 +114,11 @@ describe('sprite with context: ' + JSON.stringify(testContext,null,4), () => {
let sprite = Sprite({
x: 10,
y: 20,
advance: sinon.spy();
advance: sinon.spy()
});
sprite.update();

expect(sprite.advance.called).to.be.true;
expect(sprite.advance.called).to.be.false;
});

if (testContext.SPRITE_ANIMATION) {
Expand Down

0 comments on commit 67cd798

Please sign in to comment.