Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test coverage for noop redirects
- Loading branch information
Kelly Selden
committed
Mar 20, 2017
1 parent
b9fb4fd
commit e44c95f
Showing
6 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
7 changes: 7 additions & 0 deletions
7
test/fixtures/fastboot-location/app/routes/noop-replace-with.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Route.extend({ | ||
beforeModel() { | ||
this.replaceWith('noop-replace-with'); | ||
} | ||
}); |
7 changes: 7 additions & 0 deletions
7
test/fixtures/fastboot-location/app/routes/noop-transition-to.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Route.extend({ | ||
beforeModel() { | ||
this.replaceWith('noop-transition-to'); | ||
} | ||
}); |
3 changes: 3 additions & 0 deletions
3
test/fixtures/fastboot-location/app/templates/noop-replace-with.hbs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1>Redirect to self</h1> | ||
|
||
<p>We should render this because a redirect to self should be a noop in Ember.</p> |
3 changes: 3 additions & 0 deletions
3
test/fixtures/fastboot-location/app/templates/noop-transition-to.hbs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1>Redirect to self</h1> | ||
|
||
<p>We should render this because a redirect to self should be a noop in Ember.</p> |