Skip to content

Commit

Permalink
fixed 4 tests that were expecting the wrong value
Browse files Browse the repository at this point in the history
  • Loading branch information
rguerreiro committed May 5, 2014
1 parent 147f7ae commit 3c81cb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/helpers_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ describe('app',function(){
});

describe('GET /helpers',function(){
it('should render with default layout.ejs and show desktop string',function(done){
it('should render with default layout.ejs and show phone string',function(done){
request(app)
.get('/helpers')
.expect(200)
.expect('<html><head><title>express-device</title></head><body><p>desktop</p></body></html>')
.expect('<html><head><title>express-device</title></head><body><p>phone</p></body></html>')
.end(done);
});
});
Expand Down
4 changes: 2 additions & 2 deletions test/no_partials_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ describe('app',function(){
});

describe('GET /helpers without partials',function(){
it('should render html and show desktop string',function(done){
it('should render html and show phone string',function(done){
request(app)
.get('/helpers')
.expect(200)
.expect('<html><head><title>express-device</title></head><body><p>desktop</p></body></html>')
.expect('<html><head><title>express-device</title></head><body><p>phone</p></body></html>')
.end(done);
});
});
Expand Down
4 changes: 2 additions & 2 deletions test/view_route_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('app',function(){
request(app)
.get('/')
.expect(200)
.expect('<html><head><title>express-device</title></head><body><h1>index</h1></body></html>')
.expect('<html><head><title>express-device for phone</title></head><body><h1>index</h1></body></html>')
.end(done);
});
});
Expand Down Expand Up @@ -137,7 +137,7 @@ describe('app',function(){
request(app)
.get('/custom-layout')
.expect(200)
.expect('<html><head><title>custom</title></head><body><h1>index</h1></body></html>')
.expect('<html><head><title>custom phone</title></head><body><h1>index</h1></body></html>')
.end(done);
});
});
Expand Down

0 comments on commit 3c81cb1

Please sign in to comment.