Skip to content

Commit 559796c

Browse files
ZvonimirZvonimir
authored andcommitted
[improvement] Align EPCIS tests with dist-only imports
1 parent 4da02af commit 559796c

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

packages/plugin-epcis/tests/pluginEpcis.spec.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { expect } from "chai";
66
import sinon from "sinon";
77
import request from "supertest";
88
import pluginEpcisPlugin from "../dist/index.js";
9-
import { EpcisQueryService } from "../src/services/epcisQueryService.js";
109
import bicycleStory from "../test-data/bicycle-manufacturing-story.json";
1110
import {
1211
ASSEMBLY_EVENTS,
@@ -570,39 +569,4 @@ describe("@dkg/plugin-epcis checks", function () {
570569
expect(response.body.error).to.equal("Failed to query events");
571570
});
572571
});
573-
574-
describe("EpcisQueryService", () => {
575-
it("normalizes shorthand bizStep to full GS1 URI", () => {
576-
const queryService = new EpcisQueryService();
577-
const query = queryService.buildQuery({ bizStep: "receiving" });
578-
579-
expect(query).to.include("https://ref.gs1.org/cbv/BizStep-receiving");
580-
});
581-
582-
it("adds UNION for fullTrace EPC queries", () => {
583-
const queryService = new EpcisQueryService();
584-
const query = queryService.buildQuery({ epc: frameEpc, fullTrace: true });
585-
586-
expect(query).to.include("UNION");
587-
});
588-
589-
it("uses full URI when bizStep is provided as shorthand", () => {
590-
const queryService = new EpcisQueryService();
591-
const query = queryService.buildQuery({ bizStep: "shipping" });
592-
593-
expect(query).to.include("https://ref.gs1.org/cbv/BizStep-shipping");
594-
});
595-
596-
it("applies explicit LIMIT and OFFSET", () => {
597-
const queryService = new EpcisQueryService();
598-
const query = queryService.buildQuery({
599-
bizStep: "receiving",
600-
limit: 5,
601-
offset: 10,
602-
});
603-
604-
expect(query).to.include("LIMIT 5");
605-
expect(query).to.include("OFFSET 10");
606-
});
607-
});
608572
});

0 commit comments

Comments
 (0)