First commit
This commit is contained in:
16
node_modules/light-my-request/test/request.test.js
generated
vendored
Normal file
16
node_modules/light-my-request/test/request.test.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
|
||||
const Request = require('../lib/request')
|
||||
|
||||
test('aborted property should be false', async (t) => {
|
||||
const mockReq = {
|
||||
url: 'http://localhost',
|
||||
method: 'GET',
|
||||
headers: {}
|
||||
}
|
||||
const req = new Request(mockReq)
|
||||
|
||||
t.same(req.aborted, false)
|
||||
})
|
||||
Reference in New Issue
Block a user