Paqmind / react-ultimate

React Ultimate Example
MIT License
303 stars 64 forks source link

Remove Chai #93

Closed ivan-kleshnin closed 8 years ago

ivan-kleshnin commented 8 years ago

Standard node's assert performs just fine. Chai is extremely overengineered. "Plugins for equality checks" – are you kidding me?

import assert from "assert"

assertEq = assert.deepStrictEqual;

assert(data.prop);
assertEq(foo, bar);
...

Funny fact: code is even more readable now...