Skip to content

Commit

Permalink
update jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Y2Nk4 committed Jun 28, 2020
1 parent 68adbda commit 8567036
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/module.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ let converter = new CurrencyConverter('do-not-use-this-key')
test('converter.convert should return a float value', async () => {
expect(typeof await converter.convert('USD', 'CNY', 1))
.toBe('number')
})

test('converter.convert should return a object if isRaw set to be true', async () => {
expect(typeof await converter.convert('USD', 'CNY', 1, true))
.toBe('object')
})

0 comments on commit 8567036

Please sign in to comment.