Skip to content

Commit

Permalink
Fix broken spec (worked miraculously)
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed Mar 19, 2017
1 parent 85a88e6 commit 3c41210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/Collection.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Collection, apiClient } from '../src'
import { Collection, apiClient, Request } from '../src'
import MockApi from './mocks/api'

const error = 'boom!'
Expand Down Expand Up @@ -61,12 +61,12 @@ describe('Collection', () => {
})

it('returns false if the label does not match', () => {
collection.request = { label: 'creating' }
collection.request = new Request('creating', null, 0)
expect(collection.isRequest('fetching')).toBe(false)
})

it('returns true otherwie', () => {
collection.request = { label: 'fetching' }
collection.request = new Request('fetching', null, 0)
expect(collection.isRequest('fetching')).toBe(true)
})
})
Expand Down

0 comments on commit 3c41210

Please sign in to comment.