I like the BDD style of expressing expectations, but I would like some documentation to refer to. That seems to be hard, as much of what I can find seems to be outdated and no longer work (like the "should" in
). The only place I could actually see a list of what was supported was by grepping the code and looking through the code in buster-assertions.js:
expectation: "toBe",
expectation: "toEqual",
expectation: "toBeGreaterThan",
expectation: "toBeLessThan",
expectation: "toBeDefined",
expectation: "toBeNull",
expectation: "toMatch",
expectation: "toBeObject",
expectation: "toBeFunction",
expectation: "toBeTrue",
expectation: "toBeFalse",
expectation: "toBeString",
expectation: "toBeBoolean",
expectation: "toBeNumber",
expectation: "toBeNaN",
expectation: "toBeArray",
expectation: "toBeArrayLike",
expectation: "toBeNear",
expectation: "toHavePrototype",
expectation: "toContain",
expectation: "toHaveTagName",
expectation: "toHaveClassName"
This is not exactly newbie-friendly, so is there some docs out there that I have been unable to find? For instance on what functions are chainable, more examples, etc.