diff --git a/test/permutations/index.js b/test/permutations/index.js index 8a255651..b4cb8276 100644 --- a/test/permutations/index.js +++ b/test/permutations/index.js @@ -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); } }); \ No newline at end of file diff --git a/test/unit/sprite.spec.js b/test/unit/sprite.spec.js index 7b393043..69ddceed 100644 --- a/test/unit/sprite.spec.js +++ b/test/unit/sprite.spec.js @@ -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) {