Skip to content

Commit

Permalink
chore: fix receiver typo (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Jan 29, 2022
1 parent 7da2cc2 commit 022f561
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vitest/src/integrations/chai/jest-expect.ts
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 022f561

Please sign in to comment.