mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 11:25:17 +00:00
Converted specs to esm
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
// @ts-check
|
||||
const {
|
||||
beforeEach,
|
||||
beforeAll,
|
||||
expect,
|
||||
it,
|
||||
describe,
|
||||
} = require("@jest/globals");
|
||||
const fs = require("node:fs");
|
||||
const path = require("node:path");
|
||||
const forge = require("node-forge");
|
||||
const { default: PKPass } = require("../lib/PKPass");
|
||||
import { beforeEach, beforeAll, expect, it, describe } from "@jest/globals";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import forge from "node-forge";
|
||||
import { PKPass } from "passkit-generator";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
/**
|
||||
* @returns {[cert: Buffer, key: Buffer]}
|
||||
@@ -1,5 +1,5 @@
|
||||
const { describe, expect, it } = require("@jest/globals");
|
||||
const { processDate, removeHidden } = require("../lib/utils");
|
||||
import { describe, expect, it } from "@jest/globals";
|
||||
import { processDate, removeHidden } from "../lib/esm/utils.js";
|
||||
|
||||
describe("Utils", () => {
|
||||
describe("removeHidden", () => {
|
||||
Reference in New Issue
Block a user