Skip to content

Commit

Permalink
Merge pull request #12 from rymizuki/fix_failing_tests
Browse files Browse the repository at this point in the history
Fix failing tests
  • Loading branch information
rymizuki authored Dec 24, 2017
2 parents db8127a + 606d55f commit ebaf9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/hariko/resource_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,16 @@ describe('harikoResource', function () {
query: {page: 2}
});
expect(entry).to.be.eql({
file: "api/item/index?page=2-GET.json",
file: "api/item/index?page-GET.json",
request: {
method: 'GET',
uri: {path: '/api/item/', template: '/api/item/{?page}', queries: [{name: 'page', value: '2'}]}
uri: {path: '/api/item/', template: '/api/item/{?page}', queries: ['page']}
},
response: {
statusCode: 200,
headers: [{name: 'Content-Type', value: 'application/json'}],
body: ' {"page": 2}\n',
data: {page: 2}
body: ' {"page": 1}\n',
data: {page: 1}
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/hariko/server-middleware/routing_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('server-middleware/routing', function () {
it('should be entry response', function (done) {
request(app)
.get('/')
.expect('Content-Type', 'application/json')
.expect('Content-Type', 'application/json; charset=utf-8')
.expect(JSON.stringify({ message: 'hello world'}))
.expect(200, done);
});
Expand Down

0 comments on commit ebaf9cb

Please sign in to comment.