Skip to content

Commit

Permalink
test(hariko/resource): fix getEntry response data
Browse files Browse the repository at this point in the history
  • Loading branch information
rymizuki committed Dec 24, 2017
1 parent 888ee32 commit 606d55f
Showing 1 changed file with 4 additions and 4 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

0 comments on commit 606d55f

Please sign in to comment.