From 03e6e69dbc9e8a158a9aa004dd44d641bbbbfdc3 Mon Sep 17 00:00:00 2001 From: mansourkira Date: Wed, 20 Mar 2024 18:01:14 +0100 Subject: [PATCH] chore : update spec.ts to be dynamic --- test/index.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/index.spec.js b/test/index.spec.js index fdb15c2..133e035 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -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); }); });