feat: add test helper for stubbing services by alexlafroscia · Pull Request #12 · isleofcode/ember-cli-testdouble
| import { setApplication } from "@ember/test-helpers"; | ||
| import { start } from "ember-qunit"; | ||
|
|
||
| import "ember-cli-testdouble-qunit"; |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created this addon and the library it wraps, testdouble-qunit, which just adds the assert.verify method used below, which mirror td.verify but reports more nicely into the QUnit test results and doesn't blow up the whole test on a single failure. Also removes the need to use assert.expect(0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters