From d7e1c51248e03ed75392291a8c80e8583e14ac5e Mon Sep 17 00:00:00 2001 From: Will Hunt <half-shot@molrams.com> Date: Sun, 19 Feb 2017 21:00:45 +0000 Subject: [PATCH] Don't rm files --- package.json | 2 +- test/test_discordbot.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7828beb..518e09f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "npm run-script build && mocha --opts test/mocha.opts build/test", "lint": "tslint --project ./tsconfig.json", "coverage": "istanbul --include-all-sources cover -x build/src/discordas.js _mocha -- build/test/ -R spec", - "build": "rm -r build/* && tsc", + "build": "tsc", "start": "build && node ./build/discordas.js -p 9005 -c config.yaml", "getbotlink": "node ./tools/addbot.js" }, diff --git a/test/test_discordbot.ts b/test/test_discordbot.ts index a1a683f..41f4448 100644 --- a/test/test_discordbot.ts +++ b/test/test_discordbot.ts @@ -175,10 +175,10 @@ describe("DiscordBot", () => { ); discordBot.run(); it("should reject an unknown room.", () => { - return assert.isRejected(discordBot.OnTyping( {id: "512"} {id: "12345"}, true)); + return assert.isRejected(discordBot.OnTyping( {id: "512"}, {id: "12345"}, true)); }); it("should resolve a known room.", () => { - return assert.isFulfilled(discordBot.OnTyping( {id: "321"} {id: "12345"}, true)); + return assert.isFulfilled(discordBot.OnTyping( {id: "321"}, {id: "12345"}, true)); }); }); describe("OnMessage()", () => { -- GitLab