Skip to content

Commit

Permalink
fix last few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Oct 27, 2019
1 parent 2f49f5f commit e545ec8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/@ember/application/tests/visit_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ moduleFor(
}

createApplication(options) {
return super.createApplication(options, Application.extend());
let application;
ignoreDeprecation(() => {
application = super.createApplication(options, Application.extend());
}, /Using the globals resolver is deprecated/);
return application;
}

assertEmptyFixture(message) {
Expand Down Expand Up @@ -455,7 +459,7 @@ moduleFor(
[`@test visit() returns a promise that resolves without rendering when shouldRender is set to false with Engines`](
assert
) {
assert.expect(3);
assert.expect(4);

this.router.map(function() {
this.mount('blog');
Expand Down Expand Up @@ -486,7 +490,7 @@ moduleFor(
[`@test visit() does not setup the event_dispatcher:main if isInteractive is false (with Engines) GH#15615`](
assert
) {
assert.expect(3);
assert.expect(4);

this.router.map(function() {
this.mount('blog');
Expand Down Expand Up @@ -535,7 +539,7 @@ moduleFor(
}

[`@test visit() on engine resolves engine component`](assert) {
assert.expect(2);
assert.expect(3);

this.router.map(function() {
this.mount('blog');
Expand Down Expand Up @@ -573,7 +577,7 @@ moduleFor(
}

[`@test visit() on engine resolves engine helper`](assert) {
assert.expect(2);
assert.expect(3);

this.router.map(function() {
this.mount('blog');
Expand Down

0 comments on commit e545ec8

Please sign in to comment.