Automattic / Automattic/expect.js

TypeError: Property 'be' of object #<Assertion> is not a function

Open
#44 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
207
PR merge metrics
No merged PRs in 30d

Description

I feel like this has to be user error but here's what I'm seeing. Using expect.js 0.1.2 with chai and mocha.

The following produces an error:
`expect(1).to.be(1);`
TypeError: Property 'be' of object # is not a function

But if I do something like this it works:
`expect(1).to.eql(1);`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.