Skip to content

Commit f91296b

Browse files
committed
chore: fix test
1 parent 5134c87 commit f91296b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/next/test/request.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Chance from 'chance'
22
import { NextURL } from 'next/dist/server/web/next-url'
3-
import { NextCookies } from 'next/dist/server/web/spec-extension/cookies'
3+
import { RequestCookies } from 'next/dist/server/web/spec-extension/cookies'
44
import { NextRequest } from 'next/server'
55
import { MiddlewareRequest } from '../src/middleware/request'
66

@@ -93,7 +93,7 @@ describe('MiddlewareRequest', () => {
9393

9494
it('returns the cookies object', () => {
9595
const mwRequest = new MiddlewareRequest(nextRequest)
96-
expect(mwRequest.cookies).toBeInstanceOf(NextCookies)
96+
expect(mwRequest.cookies).toBeInstanceOf(RequestCookies)
9797
})
9898

9999
it('returns the geo object', () => {

0 commit comments

Comments
 (0)