]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove stale test lines
authorEvan You <evan@vuejs.org>
Tue, 10 Dec 2024 03:53:35 +0000 (11:53 +0800)
committerEvan You <evan@vuejs.org>
Tue, 10 Dec 2024 03:53:35 +0000 (11:53 +0800)
packages/runtime-vapor/__tests__/componentProps.spec.ts

index 520dd9ef724c551b7b7a93a3bd2dae20b769e7d5..875d43d6fd17073483c46157e55e70fb2064dfd8 100644 (file)
@@ -183,7 +183,6 @@ describe('component: props', () => {
 
     render({ foo: () => 2 })
     expect(props.foo).toBe(2)
-    // const prevBar = props.bar
     expect(props.bar).toEqual({ a: 1 })
     expect(props.baz).toEqual(defaultBaz)
     expect(defaultFn).toHaveBeenCalledTimes(1)
@@ -195,13 +194,10 @@ describe('component: props', () => {
 
     expect(props.foo).toBe(3)
     expect(props.bar).toEqual({ a: 1 })
-    // expect(props.bar).toBe(prevBar) // failed: (caching is not supported)
-    // expect(defaultFn).toHaveBeenCalledTimes(1) // failed: caching is not supported (called 2 times)
 
     render({ bar: () => ({ b: 2 }) })
     expect(props.foo).toBe(1)
     expect(props.bar).toEqual({ b: 2 })
-    // expect(defaultFn).toHaveBeenCalledTimes(1) // failed: caching is not supported (called 2 times)
 
     render({
       foo: () => 3,
@@ -209,12 +205,10 @@ describe('component: props', () => {
     })
     expect(props.foo).toBe(3)
     expect(props.bar).toEqual({ b: 3 })
-    // expect(defaultFn).toHaveBeenCalledTimes(1) // failed: caching is not supported (called 2 times)
 
     render({ bar: () => ({ b: 4 }) })
     expect(props.foo).toBe(1)
     expect(props.bar).toEqual({ b: 4 })
-    // expect(defaultFn).toHaveBeenCalledTimes(1) // failed: caching is not supported (called 2 times)
   })
 
   test('using inject in default value factory', () => {