From: 阿崔cxr Date: Mon, 23 Aug 2021 22:52:11 +0000 (+0800) Subject: chore(test): make unnecessarily async test case sync (#4421) X-Git-Tag: v3.2.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46b0a9a96e1fff2b0793769db161ca65fb217e2;p=thirdparty%2Fvuejs%2Fcore.git chore(test): make unnecessarily async test case sync (#4421) --- diff --git a/packages/reactivity/__tests__/shallowReactive.spec.ts b/packages/reactivity/__tests__/shallowReactive.spec.ts index 595e728097..cfd870dc00 100644 --- a/packages/reactivity/__tests__/shallowReactive.spec.ts +++ b/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) diff --git a/packages/reactivity/__tests__/shallowReadonly.spec.ts b/packages/reactivity/__tests__/shallowReadonly.spec.ts index 8e82412d2d..ca3f9671c5 100644 --- a/packages/reactivity/__tests__/shallowReadonly.spec.ts +++ b/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)