@@ -6,7 +6,7 @@ import type http from 'node:http'
66import sinon from 'sinon'
77
88import { PatchHandler } from '../src/handlers/PatchHandler'
9- import { EVENTS , Upload , DataStore , type CancellationContext } from '@tus/utils'
9+ import { Upload , DataStore , type CancellationContext } from '@tus/utils'
1010import { MemoryLocker } from '../src'
1111import streamP from 'node:stream/promises'
1212import stream , { PassThrough } from 'node:stream'
@@ -190,19 +190,6 @@ describe('PatchHandler', () => {
190190 } )
191191 } )
192192
193- it ( 'should emit POST_RECEIVE event' , async ( ) => {
194- req . headers . set ( 'upload-offset' , '0' )
195- req . headers . set ( 'content-type' , 'application/offset+octet-stream' )
196-
197- store . getUpload . resolves ( new Upload ( { id : '1234' , offset : 0 , size : 1024 } ) )
198- store . write . resolves ( 10 )
199- handler . on ( EVENTS . POST_RECEIVE , sinon . spy ( ) )
200-
201- await handler . send ( req , context )
202-
203- assert . equal ( true , true ) // The event emitter is not directly testable in this context
204- } )
205-
206193 it ( 'should throw max size exceeded error when upload-length is higher then the maxSize' , async ( ) => {
207194 const handler = new PatchHandler ( store , {
208195 path,
0 commit comments