From 0ed75ac04793d3b5e9443c7fbc760bf694bcb165 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 23 Oct 2021 00:28:30 +0200 Subject: [PATCH] FIxed Bundle test and changed bundle closed message --- spec/Bundle.ts | 2 +- src/messages.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/Bundle.ts b/spec/Bundle.ts index ac9d321..368c28d 100644 --- a/spec/Bundle.ts +++ b/spec/Bundle.ts @@ -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); }); }); diff --git a/src/messages.ts b/src/messages.ts index eebda27..e8b56d0 100644 --- a/src/messages.ts +++ b/src/messages.ts @@ -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 = {