Browse Source

chore(test): make unnecessarily async test case sync (#4421)

阿崔cxr 4 years ago
parent
commit
a46b0a9a96

+ 1 - 1
packages/reactivity/__tests__/shallowReactive.spec.ts

@@ -15,7 +15,7 @@ describe('shallowReactive', () => {
   })
 
   // #2843
-  test('should allow shallow and normal reactive for same target', async () => {
+  test('should allow shallow and normal reactive for same target', () => {
     const original = { foo: {} }
     const shallowProxy = shallowReactive(original)
     const reactiveProxy = reactive(original)

+ 1 - 1
packages/reactivity/__tests__/shallowReadonly.spec.ts

@@ -28,7 +28,7 @@ describe('reactivity/shallowReadonly', () => {
   })
 
   // #2843
-  test('should differentiate from normal readonly calls', async () => {
+  test('should differentiate from normal readonly calls', () => {
     const original = { foo: {} }
     const shallowProxy = shallowReadonly(original)
     const reactiveProxy = readonly(original)