From 6d5ea45adfe066a4086731980727f44138e24dd1 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Fri, 1 May 2020 12:48:40 -0700 Subject: [PATCH] Fix misc bugs preventing build --- build | 2 +- test/sim/data.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build b/build index 85ff706c440f..1ff0bddaa262 100755 --- a/build +++ b/build @@ -11,7 +11,7 @@ var child_process = require('child_process'); var fs = require('fs'); var path = require('path'); -process.chmod(__dirname); +process.chdir(__dirname); function shell(cmd) { child_process.execSync(cmd, {stdio: 'inherit'}); diff --git a/test/sim/data.js b/test/sim/data.js index 34775e10e493..c226b7a2c959 100644 --- a/test/sim/data.js +++ b/test/sim/data.js @@ -101,7 +101,7 @@ describe('Dex data', function () { const entry = Movedex[moveid]; assert.equal(toID(entry.name), moveid, `Mismatched Move key "${moveid}" of "${entry.name}"`); assert.equal(typeof entry.num, 'number', `Move ${entry.name} should have a number`); - assert.false(typeof entry.infiltrates, `Move ${entry.name} should not have an 'infiltrates' property (no real move has it)`); + assert.false(entry.infiltrates, `Move ${entry.name} should not have an 'infiltrates' property (no real move has it)`); } });