Skip to content

Commit 6d9dc36

Browse files
committed
remove legacy simple test and add routes for new tests
1 parent 544d312 commit 6d9dc36

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

test-packages/basic-app/app/router.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ export default class Router extends EmberRouter {
77
}
88

99
Router.map(function() {
10+
this.route('posts');
11+
this.route('boom');
12+
this.route('imports');
1013
});

test-packages/basic-app/test/simple-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const request = RSVP.denodeify(require('request'));
55
const expect = require('chai').use(require('chai-string')).expect;
66
const { startServer, stopServer } = require('../../test-libs/index');
77

8-
describe.only('simple acceptance', function() {
9-
this.timeout(20000);
8+
describe('simple acceptance', function() {
9+
this.timeout(30000);
1010

1111
before(function() {
1212
return startServer({
@@ -68,7 +68,7 @@ describe.only('simple acceptance', function() {
6868

6969
expect(response.statusCode).to.equal(200);
7070
expect(response.headers["content-type"]).to.equalIgnoreCase("text/html; charset=utf-8");
71-
expect(response.body).to.contain("Welcome to Ember.js");
71+
expect(response.body).to.contain("Basic fastboot ember app");
7272
expect(response.body).to.contain("Posts Route!");
7373
});
7474

@@ -119,8 +119,8 @@ describe.only('simple acceptance', function() {
119119
expect(response.body).to.contain("Ember =");
120120
});
121121

122-
it('/assets/dummy.js', async () => {
123-
const response = await request('http://localhost:49741/assets/dummy.js')
122+
it('/assets/basic-app.js', async () => {
123+
const response = await request('http://localhost:49741/assets/basic-app.js')
124124

125125
expect(response.statusCode).to.equal(200);
126126
expect(response.headers["content-type"]).to.equalIgnoreCase("application/javascript; charset=utf-8");

0 commit comments

Comments
 (0)