Category "chai"

Does chai assertion library return true/false on passed/failed step?

I am using webdriverio with chai assertion library for UItesting, while asserting a string i was wondering if I can make chai to return true/false when the asse

Unit testing for Google Cloud Functions

I was trying to write unit testing for Google Cloud Functions referring to Google Cloud Platform unit testing docs but not able to understand how to mock when G

Mocha + Chai: Continue and try all assertions after failure for the test

I would like the test runner to continue testing the whole it test even after the assertion fails. const { assert } = require('chai'); describe('Test suite', (

Chai should be bignumber equal doesn't work

I am requireing chai like this const BigNumber = web3.BigNumber; require('chai').use(require('chai-bignumber')(BigNumber)).should(); and during test let balanc

Nice way to get rid of no-unused-expressions linter error with chai

In my Chai tests I often find myself wanting to use their assertions that are something like .to.be.empty, .to.be.true e.t.c., because I find them to be cleaner

Trying ES6 style import gives 'Cannot use import statement outside a module'

I am trying to write a javascript test in intellij for which I need to import some dependancies and I want to use ES6 style import statements but getting error