FIxed Bundle test and changed bundle closed message

This commit is contained in:
Alexander Cerutti
2021-10-23 00:28:30 +02:00
parent 86d09b9509
commit 0ed75ac047
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ describe("Bundle", () => {
expect(() =>
bundle.addBuffer("icon.png", Buffer.alloc(0)),
).toThrowError(Error, "Cannot add file. Bundle is closed.");
).toThrowError(Error, Messages.BUNDLE.CLOSED);
});
});

View File

@@ -77,7 +77,7 @@ export const MODELS = {
export const BUNDLE = {
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;
export const FROM = {