mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Revert "Added Bundle.prototype.files getter to prevent exposing filesSymbol"
This reverts commit 6f7a597cbe.
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user