Plugin Utilities

Plugin Utilities

The plugin utilities are for those who want to extend Chai with their own set of assertions. The Code Plugin Concepts and Building a Helper guide tutorials are a great reference on how to get started with your own assertions.

API Reference

.addChainableMethod(ctx, name, method, chainingBehavior)

  • @param { Object } ctx object to which the method is added
  • @param { String } name of method to add
  • 登录查看完整内容