removed after fork
This commit is contained in:
parent
1a36c462f7
commit
9c67f91e83
@ -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);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user