Alsatian fluent assertions plugin
This is a fluent assertions plugin for the Alsatian xUnit framework, for JavaScript and TypeScript. It provides a way to chain assertions while narrowing the scope, enabling the clear and concise expression of code specifications for those who prefer a fluent style. By contrast, the default expectations framework in Alsatian is not currently fluent.
Assertobj .isUserModel .haso.name .that.hasMatch/\d+/ // alt 'matches' that returns match result scope .that.converted+parts .equals7; Assertobj.equalsexpected; Assertobj .hasAsserts;
Basic Usage & Documentation
Please visit our wiki.
Installation
If you already have Alsatian installed, just save this with your devDependencies.
npm i -sD alsatian-fluent-assertions