@adobe/adobeio-cna-tvm-client
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -103,3 +103,3 @@ /* | ||
cacheFile: joi.any() | ||
}).unknown().required()) | ||
}).required()) | ||
if (res.error) throw new TvmError(res.error.message, TvmError.codes.BadArgument) | ||
@@ -106,0 +106,0 @@ |
{ | ||
"name": "@adobe/adobeio-cna-tvm-client", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A JS client to access the token vending machine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -91,2 +91,8 @@ /* | ||
}) | ||
test('unknown config key', async () => { | ||
const badInput = { ...fakeTVMInput } | ||
badInput.badKey = 'smthg' | ||
const instantiate = async () => TvmClient.init(badInput) | ||
await expect(instantiate).toThrowBadArgWithMessageContaining(['badKey', 'not allowed']) | ||
}) | ||
}) | ||
@@ -93,0 +99,0 @@ describe('api url', () => { |
57355
583