add punctuation

This commit is contained in:
Johannes Loher 2021-03-13 02:32:28 +01:00
parent ea5eee709e
commit a542dd1575

View file

@ -3,19 +3,19 @@ import { assignSubChecksToDice } from "../../src/module/rolls/check-evaluation";
Object.defineProperty(globalThis, "game", { value: { i18n: { localize: (key: string) => key } } });
describe("assignSubChecksToDice with no dice", () => {
it("should throw an error", () => {
it("should throw an error.", () => {
expect(() => assignSubChecksToDice([], 10)).toThrow("DS4.ErrorInvalidNumberOfDice");
});
});
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");
});
});
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");
});
});