File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 11import { VaccineType } from "@src/models/vaccine" ;
2- import { getNbsQueryParams , getSSOUrlToNBSForVaccine } from "@src/services/nbs/nbs-service" ;
2+ import { getSSOUrlToNBSForVaccine } from "@src/services/nbs/nbs-service" ;
33import { generateAssertedLoginIdentityJwt } from "@src/utils/auth/generate-auth-payload" ;
44import config from "@src/utils/config" ;
55import { ConfigMock , configBuilder } from "@test-data/config/builders" ;
@@ -65,19 +65,3 @@ describe("getSSOUrlToNBSForVaccine", () => {
6565 } ) ;
6666 } ) ;
6767} ) ;
68-
69- describe ( "getNbsQueryParams" , ( ) => {
70- beforeEach ( ( ) => {
71- ( generateAssertedLoginIdentityJwt as jest . Mock ) . mockReturnValue ( mockAssertedLoginIdentityJWT ) ;
72- } ) ;
73-
74- it ( "should include campaignID query param when vaccineType supplied" , async ( ) => {
75- const actual = await getNbsQueryParams ( VaccineType . RSV ) ;
76- expect ( actual ) . toEqual ( expect . arrayContaining ( [ expect . objectContaining ( { name : "wt.mc_id" } ) ] ) ) ;
77- } ) ;
78-
79- it ( "should not include campaignID query param when vaccineType not supplied" , async ( ) => {
80- const actual = await getNbsQueryParams ( ) ;
81- expect ( actual ) . not . toEqual ( expect . arrayContaining ( [ expect . objectContaining ( { name : "wt.mc_id" } ) ] ) ) ;
82- } ) ;
83- } ) ;
You can’t perform that action at this time.
0 commit comments