Skip to content

Commit c4d5853

Browse files
committed
Fix the get test
1 parent ae9e66e commit c4d5853

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/dummy/app/pods/examples/network/other/get-request/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fetch from 'fetch';
44
export default Route.extend({
55

66
async model() {
7-
let response = await fetch('/api/posts', { method: 'post' });
7+
let response = await fetch('/api/posts');
88
return await response.json();
99
}
1010

tests/fastboot/network-mocking-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module('Fastboot | network mocking', function(hooks) {
6868
});
6969

7070
test('it can mock a get request', async function(assert) {
71-
await mockServer.post('/api/posts', [
71+
await mockServer.get('/api/posts', [
7272
{ id: 1, title: 'get post'},
7373
]);
7474

0 commit comments

Comments
 (0)