Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should support the `administration` GraphQL target', () => {
expect(
getDoesGraphQLTargetSupportTokenRetry({
'X-Graphql-Target': GRAPHQL_TARGETS.ADMINISTRATION_SERVICE,
})
).toBe(true);
});
export const getDoesGraphQLTargetSupportTokenRetry = requestHeaders =>
[
GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM,
GRAPHQL_TARGETS.ADMINISTRATION_SERVICE,
].includes(requestHeaders['X-Graphql-Target']);