Skip to content

Commit

Permalink
🚨 Fixed getInventory test
Browse files Browse the repository at this point in the history
  • Loading branch information
aknorw committed Apr 29, 2018
1 parent f3e84bb commit 21ebc84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const client = new Discojs(options)

Key | Type | Default | Details
--- | --- | --- | ---
userAgent | *string* | `Discojs/1.0.0` |
userAgent | *string* | `Discojs/1.0.1` |
outputFormat | *string* | `discogs` | Must be `discogs`, `plaintext` or `html`
userToken | *string* | - | For auth purposes
consumerKey | *string* | - | For auth purposes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discojs",
"version": "1.0.0",
"version": "1.0.1",
"description": "Easiest way to use the Discogs API in Javascript",
"author": "aknorw",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/users/getInventory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let client

const URL_REGEX = /^https:\/\/api\.discogs\.com\/.*\?(.*)$/

const username = 'deejay.de.'
const username = 'Kozuch438'

describe('Users - getInventoryMethod', () => {
before(() => {
Expand All @@ -28,7 +28,7 @@ describe('Users - getInventoryMethod', () => {
client.getInventory().catch(err => err.should.be.an.instanceOf(TypeError))
})
it('should return a TypeError if `username` is not a string', () => {
client.getInventory(1337).catch(err => err.should.be.an.instanceOf(TypeError))
client.getInventory({ username: 1337 }).catch(err => err.should.be.an.instanceOf(TypeError))
})
it('should accept status param', async () => {
const status = 'All'
Expand Down

0 comments on commit 21ebc84

Please sign in to comment.