Strumenta / tylasu

Apache License 2.0
20 stars 4 forks source link

assertASTsAreEqual: don't depend on Chai #35

Open alessiostalla opened 1 year ago

alessiostalla commented 1 year ago

For the future: we could throw an exception of our own, and provide the Chai integration as a separate module, so that users may write e.g. expect(someNode).to.equalAST(someOtherNode). Here's an example of such an integration: https://github.com/krampstudio/chai-xml