Skip to content

Commit

Permalink
AN-614: Test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
acenolaza committed May 19, 2022
1 parent 82cc216 commit fd2f848
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions packages/airnode-validator/src/config/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@ it('fails if a securitySchemeName is enabled and it is of type "apiKey" or "http
name: 'access_key',
},
};
const apiCredentials = [
{
oisTitle: 'Currency Converter API',
securitySchemeName: 'Currency Converter Security Scheme',
securitySchemeValue: '${SS_CURRENCY_CONVERTER_API_KEY}',
},
];
const configWithSecuritySchemes = {
const invalidConfig = {
...config,
ois: [
...config.ois,
Expand All @@ -103,13 +96,9 @@ it('fails if a securitySchemeName is enabled and it is of type "apiKey" or "http
},
},
],
apiCredentials,
};

const invalidConfig = {
...configWithSecuritySchemes,
apiCredentials: [],
};

expect(() => configSchema.parse(invalidConfig)).toThrow(
new ZodError([
{
Expand Down

0 comments on commit fd2f848

Please sign in to comment.