Projektstart
This commit is contained in:
13
backend/node_modules/@fastify/send/test/constructor.test.js
generated
vendored
Normal file
13
backend/node_modules/@fastify/send/test/constructor.test.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const SendStream = require('../index').SendStream
|
||||
|
||||
test('constructor', function (t) {
|
||||
t.plan(1)
|
||||
|
||||
t.test('SendStream without new returns SendStream instance', function (t) {
|
||||
t.plan(1)
|
||||
t.ok(SendStream({}, '/', {}) instanceof SendStream)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user