mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Refactored Errors Messages to be references instead of looked up
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { createPass } from "../lib/factory";
|
||||
import formatMessage from "../lib/messages";
|
||||
import formatMessage, { ERROR } from "../lib/messages";
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
|
||||
describe("createPass", () => {
|
||||
it("should throw if first argument is not provided", async () => {
|
||||
await expectAsync(createPass(undefined)).toBeRejectedWithError(
|
||||
formatMessage("CP_NO_OPTS"),
|
||||
formatMessage(ERROR.CP_NO_OPTS),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user