blob: fe704123e9a29a43353300456f3ea0b6341db1c2 (
plain)
1
2
3
4
5
6
7
8
|
'use strict'
const { test } = require('tap')
const { fetch } = require('../..')
test('fetch with signal already aborted', async (t) => {
await t.rejects(fetch('http://localhost', { signal: AbortSignal.abort('Already aborted') }), 'Already aborted')
})
|