Added spec against buffer exporting

This commit is contained in:
Alexander Cerutti
2023-04-19 23:26:56 +02:00
parent cc2226930a
commit 1f12f64001

View File

@@ -388,6 +388,10 @@ describe("PKPass", () => {
expect(backFields.length).toBe(0);
});
it("should export a buffer when getAsBuffer is used", () => {
expect(pkpass.getAsBuffer()).toBeInstanceOf(Buffer);
});
describe("pkpass should get frozen once an export is done", () => {
it("getAsRaw", () => {
pkpass.getAsRaw();