We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be55aab commit 8eef2c7Copy full SHA for 8eef2c7
1 file changed
tests/integration/assertion-test.js
@@ -53,16 +53,16 @@ module('Assertion', function(hooks) {
53
assert.ok(this.pushedResults[0].result, 'properly captured an async assertion');
54
});
55
56
- test('Does not log caught assertions', function(assert) {
+ test('Does not log caught assertions', async function(assert) {
57
let origLoggerError = Ember.Logger.error;
58
try {
59
let errorCalled = false;
60
Ember.Logger.error = () => {
61
errorCalled = true;
62
};
63
64
- assert.expectAssertion(() => {
65
- render(hbs`{{x-assert-test}}`);
+ await assert.expectAssertion(() => {
+ return render(hbs`{{x-assert-test}}`);
66
}, /x-assert-test will always assert/);
67
68
// Restore the asserts (removes the mocking)
0 commit comments