mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 13:25:19 +00:00
Added spec against buffer exporting
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user