Skip to content

Commit

Permalink
chore : update spec.ts to be dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansourkira committed Mar 20, 2024
1 parent 0bf3657 commit 03e6e69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { version as _version } from "../www/src/@sikka/hajar/index";
const { version } = require("../package.json");

import { version } from "../package.json";
describe("Hajar.src.js", () => {
it("should get the library's version", () => {
expect(["1.1.69-beta", "1.1.69"]).toContain(version);
expect([version + "-beta", version]).toContain(version);
});
});

0 comments on commit 03e6e69

Please sign in to comment.