Added bundle to messages

This commit is contained in:
Alexander Cerutti
2021-10-15 11:26:32 +02:00
parent 2278308149
commit d5d5cb78b2
3 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { Stream } from "stream";
import * as Messages from "../lib/messages";
import { default as Bundle, filesSymbol } from "../lib/Bundle";
describe("Bundle", () => {
@@ -59,7 +60,7 @@ describe("Bundle", () => {
expect(() =>
bundle.addBuffer("icon.png", Buffer.alloc(0)),
).toThrowError(Error, "Cannot add file. Bundle is closed.");
).toThrowError(Error, Messages.BUNDLE.CLOSED);
});
});