Skip to content

Commit 8eef2c7

Browse files
committed
Fix tests?
1 parent be55aab commit 8eef2c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/integration/assertion-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ module('Assertion', function(hooks) {
5353
assert.ok(this.pushedResults[0].result, 'properly captured an async assertion');
5454
});
5555

56-
test('Does not log caught assertions', function(assert) {
56+
test('Does not log caught assertions', async function(assert) {
5757
let origLoggerError = Ember.Logger.error;
5858
try {
5959
let errorCalled = false;
6060
Ember.Logger.error = () => {
6161
errorCalled = true;
6262
};
6363

64-
assert.expectAssertion(() => {
65-
render(hbs`{{x-assert-test}}`);
64+
await assert.expectAssertion(() => {
65+
return render(hbs`{{x-assert-test}}`);
6666
}, /x-assert-test will always assert/);
6767

6868
// Restore the asserts (removes the mocking)

0 commit comments

Comments
 (0)