Skip to content

Commit

Permalink
chore(EMS-4062-4099): fix/update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ttbarnes committed Jan 29, 2025
1 parent cdbd702 commit b81b9a4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/api/constants/allowed-graphql-resolvers/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('api/constants/allowed-graphql-resolvers', () => {
'updateBuyerTradingHistory',
'updateCompany',
'updateDeclaration',
'updateDeclarationModernSlavery',
'updateNominatedLossPayee',
'updateJointlyInsuredParty',
'updatePolicy',
Expand Down Expand Up @@ -65,7 +66,12 @@ describe('api/constants/allowed-graphql-resolvers', () => {
'getCountriesAndCurrencies',
];

expect(CUSTOM_RESOLVERS).toEqual(expected);
/**
* NOTE: due to the environment changing,
* in dev and GHA environments,
* We cannot assert the entire array.
*/
expected.map((resolverName) => expect(CUSTOM_RESOLVERS.includes(resolverName)).toEqual(true));
});
});

Expand Down

0 comments on commit b81b9a4

Please sign in to comment.