@@ -6,7 +6,6 @@ import { expect } from "chai";
66import sinon from "sinon" ;
77import request from "supertest" ;
88import pluginEpcisPlugin from "../dist/index.js" ;
9- import { EpcisQueryService } from "../src/services/epcisQueryService.js" ;
109import bicycleStory from "../test-data/bicycle-manufacturing-story.json" ;
1110import {
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