when I write tests I often use such constructions with assert
try {
await asyncFunction(); // expect error
assert(false) // to make 100% fail
} catch (err) {
assert(err) // means 'assert(true)
}
Now I need to use "expect" from chai lib and I don't know how to write exactly the same test with 'expect' syntax