mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 14:25:17 +00:00
Added better freezing check
This commit is contained in:
@@ -388,11 +388,27 @@ describe("PKPass", () => {
|
|||||||
expect(backFields.length).toBe(0);
|
expect(backFields.length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("pkpass should get frozen once an export is done", () => {
|
describe("pkpass should get frozen once an export is done", () => {
|
||||||
pkpass.getAsRaw();
|
it("getAsRaw", () => {
|
||||||
|
pkpass.getAsRaw();
|
||||||
|
|
||||||
/** We might want to test all the methods, but methods might change... so should we? */
|
/** We might want to test all the methods, but methods might change... so should we? */
|
||||||
expect(() => pkpass.localize("en", { a: "b" })).toThrowError();
|
expect(() => pkpass.localize("en", { a: "b" })).toThrowError();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("getAsBuffer", () => {
|
||||||
|
pkpass.getAsBuffer();
|
||||||
|
|
||||||
|
/** We might want to test all the methods, but methods might change... so should we? */
|
||||||
|
expect(() => pkpass.localize("en", { a: "b" })).toThrowError();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("getAsStream", () => {
|
||||||
|
pkpass.getAsStream();
|
||||||
|
|
||||||
|
/** We might want to test all the methods, but methods might change... so should we? */
|
||||||
|
expect(() => pkpass.localize("en", { a: "b" })).toThrowError();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("localize and languages", () => {
|
describe("localize and languages", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user