add punctuation
This commit is contained in:
parent
ea5eee709e
commit
a542dd1575
1 changed files with 3 additions and 3 deletions
|
@ -3,19 +3,19 @@ import { assignSubChecksToDice } from "../../src/module/rolls/check-evaluation";
|
||||||
Object.defineProperty(globalThis, "game", { value: { i18n: { localize: (key: string) => key } } });
|
Object.defineProperty(globalThis, "game", { value: { i18n: { localize: (key: string) => key } } });
|
||||||
|
|
||||||
describe("assignSubChecksToDice with no dice", () => {
|
describe("assignSubChecksToDice with no dice", () => {
|
||||||
it("should throw an error", () => {
|
it("should throw an error.", () => {
|
||||||
expect(() => assignSubChecksToDice([], 10)).toThrow("DS4.ErrorInvalidNumberOfDice");
|
expect(() => assignSubChecksToDice([], 10)).toThrow("DS4.ErrorInvalidNumberOfDice");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("assignSubChecksToDice with more dice than required by the checkTargetNumber", () => {
|
describe("assignSubChecksToDice with more dice than required by the checkTargetNumber", () => {
|
||||||
it("should throw an error", () => {
|
it("should throw an error.", () => {
|
||||||
expect(() => assignSubChecksToDice([10, 10], 10)).toThrow("DS4.ErrorInvalidNumberOfDice");
|
expect(() => assignSubChecksToDice([10, 10], 10)).toThrow("DS4.ErrorInvalidNumberOfDice");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("assignSubChecksToDice with less dice than required by the checkTargetNumber", () => {
|
describe("assignSubChecksToDice with less dice than required by the checkTargetNumber", () => {
|
||||||
it("should throw an error", () => {
|
it("should throw an error.", () => {
|
||||||
expect(() => assignSubChecksToDice([10], 21)).toThrow("DS4.ErrorInvalidNumberOfDice");
|
expect(() => assignSubChecksToDice([10], 21)).toThrow("DS4.ErrorInvalidNumberOfDice");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue