Revert "Added Bundle.prototype.files getter to prevent exposing filesSymbol"

This reverts commit 6f7a597cbe.
This commit is contained in:
Alexander Cerutti
2021-09-26 23:32:21 +02:00
parent 6f7a597cbe
commit aaea9c1304
3 changed files with 7 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import { Stream } from "stream";
import { default as Bundle } from "../lib/Bundle";
import { default as Bundle, filesSymbol } from "../lib/Bundle";
describe("Bundle", () => {
let bundle: InstanceType<typeof Bundle>;
@@ -24,7 +24,7 @@ describe("Bundle", () => {
const buffer = Buffer.alloc(0);
bundle.addBuffer("pass.json", buffer);
expect(bundle.files).toEqual({ "pass.json": buffer });
expect(bundle[filesSymbol]).toEqual({ "pass.json": buffer });
});
it("should throw error if freezed", async () => {