latest-stalker
Version:
The module for the latest-stalker-api
20 lines (13 loc) • 341 B
JavaScript
import stalker from '../src'
describe('bad file', () => {
let json
beforeAll(async() =>
json = await stalker(`${__dirname}/../README.md`)
)
it('should have correct status', () =>
expect(json.status).toEqual(400)
)
it('should have correct statusText', () =>
expect(json.statusText).toEqual('Bad Request')
)
})