mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
FIxed Bundle test and changed bundle closed message
This commit is contained in:
@@ -83,7 +83,7 @@ describe("Bundle", () => {
|
|||||||
|
|
||||||
expect(() =>
|
expect(() =>
|
||||||
bundle.addBuffer("icon.png", Buffer.alloc(0)),
|
bundle.addBuffer("icon.png", Buffer.alloc(0)),
|
||||||
).toThrowError(Error, "Cannot add file. Bundle is closed.");
|
).toThrowError(Error, Messages.BUNDLE.CLOSED);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export const MODELS = {
|
|||||||
|
|
||||||
export const BUNDLE = {
|
export const BUNDLE = {
|
||||||
MIME_TYPE_MISSING: "Cannot build Bundle. MimeType is missing",
|
MIME_TYPE_MISSING: "Cannot build Bundle. MimeType is missing",
|
||||||
CLOSED: "Cannot add file. Bundle is closed.",
|
CLOSED: "Cannot add file or set property. Bundle is closed.",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const FROM = {
|
export const FROM = {
|
||||||
|
|||||||
Reference in New Issue
Block a user