Skip to content

0.8.0 / 13 April 2020

Choose a tag to compare

@rwalle61 rwalle61 released this 13 Apr 11:35
· 155 commits to master since this release
8922604

Features:

  • Added a TypeScript Declaration File so you can use this plugin in TypeScript projects without import type errors #61. See usage guide

  • Changed some negated assertions to pass instead of fail #67
    expect(res).to.not.satisfyApiSpec used to mean "expect res to match but not satisfy a response defined in your API spec".
    now expect(res).to.not.satisfyApiSpec means "expect res to neither match nor satisfy a response defined in your API spec".
    So if res matches no responses in your API spec, then expect(res).to.not.satisfyApiSpec passes.

  • Much more useful and consistent assertion failure messages #67, see diff:

    • expect(response).to.satisfyApiSpec:
      image

    • expect(object).to.satisfySchemaInApiSpec:
      image