Skip to content

Commit e13982d

Browse files
committed
Move test route into sandbox
1 parent 69641ad commit e13982d

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

tests/acceptance/docs-route-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module('Acceptance | Docs route test', function(hooks) {
2121
});
2222

2323
test('I can visit a nested child route within the docs pages and still have the correct links', async function(assert) {
24-
await visit('/docs/deploying/test-nested-route');
25-
assert.dom('[data-test-next-link] > a').hasText('Hero');
24+
await visit('/sandbox/docs/one/child');
25+
assert.dom('[data-test-next-link] > a').hasText('Two');
2626
});
2727
});

tests/dummy/app/pods/sandbox/template.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
{{#viewer.nav project=model root='sandbox' as |nav|}}
33
{{nav.section 'The Sandbox'}}
44
{{nav.item 'Welcome' 'sandbox.index'}}
5+
{{nav.item 'One' 'sandbox.docs.one'}}
6+
{{nav.item 'Two' 'sandbox.docs.two'}}
57
{{/viewer.nav}}
68

79
{{#viewer.main}}

tests/dummy/app/router.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ Router.map(function() {
1212
this.route('usage');
1313
this.route('quickstart');
1414
this.route('patterns');
15-
this.route('deploying', function() {
16-
// This exists so we can acceptance test whether the docs pages tolerate
17-
// embedded child routes. It's not used in the public documentation site.
18-
this.route('test-nested-route');
19-
});
15+
this.route('deploying');
2016

2117
this.route('components', function() {
2218
this.route('docs-hero');
@@ -30,6 +26,12 @@ Router.map(function() {
3026

3127
this.route('sandbox', function() {
3228
apiRoute(this);
29+
docsRoute(this, function() {
30+
this.route('one', function() {
31+
this.route('child');
32+
});
33+
this.route('two');
34+
});
3335
});
3436

3537
this.route('not-found', { path: '/*path' });

0 commit comments

Comments
 (0)