From 022f561a2cfe40d1bd5a871a5d0b866a7831dfce Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 29 Jan 2022 02:27:45 -0600 Subject: [PATCH] chore: fix receiver typo (#657) --- packages/vitest/src/integrations/chai/jest-expect.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/vitest/src/integrations/chai/jest-expect.ts b/packages/vitest/src/integrations/chai/jest-expect.ts index bd53f303521c..77a8ea29418a 100644 --- a/packages/vitest/src/integrations/chai/jest-expect.ts +++ b/packages/vitest/src/integrations/chai/jest-expect.ts @@ -447,8 +447,8 @@ export const JestChaiExpect: ChaiPlugin = (chai, utils) => { utils.flag(this, 'promise', 'resolves') const obj = utils.flag(this, 'object') const proxy: any = new Proxy(this, { - get: (target, key, reciever) => { - const result = Reflect.get(target, key, reciever) + get: (target, key, receiver) => { + const result = Reflect.get(target, key, receiver) if (typeof result !== 'function') return result instanceof chai.Assertion ? proxy : result @@ -475,8 +475,8 @@ export const JestChaiExpect: ChaiPlugin = (chai, utils) => { const obj = utils.flag(this, 'object') const wrapper = typeof obj === 'function' ? obj() : obj // for jest compat const proxy: any = new Proxy(this, { - get: (target, key, reciever) => { - const result = Reflect.get(target, key, reciever) + get: (target, key, receiver) => { + const result = Reflect.get(target, key, receiver) if (typeof result !== 'function') return result instanceof chai.Assertion ? proxy : result