From 9c67f91e837c8a936c2779e6cda000abc1c71f22 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 27 Jul 2023 20:46:34 +0200 Subject: [PATCH] removed after fork --- __tests__/sr2ini.test.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 __tests__/sr2ini.test.js diff --git a/__tests__/sr2ini.test.js b/__tests__/sr2ini.test.js deleted file mode 100644 index 61804ae..0000000 --- a/__tests__/sr2ini.test.js +++ /dev/null @@ -1,16 +0,0 @@ -const s = require("../src/js/sr2ini.js"); - -describe ("test function rollForInitiative()", () => { - test("function should accept numbes as integers as well as strings", () => { - expect(typeof s.rollForInitiative("1", "5")).toBe("number"); - expect(typeof s.rollForInitiative(1, 5)).toBe("number"); - }); - - test("result should be greater than zero", () => { - expect(s.rollForInitiative("1", "5")).toBeGreaterThan(0); - }); - - test("should return zero for bad parameters", () => { - expect(s.rollForInitiative("a", 2)).toBe(0); - }); -}); \ No newline at end of file