File size: 322 Bytes
23ac194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'

const { test } = require('node:test')

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.assert.strictEqual(req.aborted, false)
})