Skip to content

Commit f9ca043

Browse files
committed
Fix test expectations
1 parent e7b195c commit f9ca043

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/next/src/server/lib/incremental-cache/shared-cache-controls.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ describe('SharedCacheControls', () => {
4242
it('should get cache control from in-memory cache', () => {
4343
sharedCacheControls.set('/route1', { revalidate: 15 })
4444
const cacheControl = sharedCacheControls.get('/route1')
45-
expect(cacheControl).toBe({ revalidate: 15 })
45+
expect(cacheControl).toEqual({ revalidate: 15 })
4646
})
4747

4848
it('should get cache control from prerender manifest if not in cache', () => {
4949
const cacheControl = sharedCacheControls.get('/route2')
50-
expect(cacheControl).toBe({ revalidate: 20, expire: 40 })
50+
expect(cacheControl).toEqual({ revalidate: 20, expire: 40 })
5151
})
5252

5353
it('should return undefined if cache control not found', () => {
@@ -58,7 +58,7 @@ describe('SharedCacheControls', () => {
5858
it('should set cache control in cache', () => {
5959
sharedCacheControls.set('/route3', { revalidate: 30 })
6060
const cacheControl = sharedCacheControls.get('/route3')
61-
expect(cacheControl).toBe({ revalidate: 30 })
61+
expect(cacheControl).toEqual({ revalidate: 30 })
6262
})
6363

6464
it('should clear the in-memory cache', () => {

0 commit comments

Comments
 (0)