Skip to content

Commit

Permalink
Correct important typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
gillchristian committed Jan 13, 2017
1 parent caede77 commit e1ad14f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -80,7 +80,7 @@ class Trae {
}

_initMethodsWithBody() {
const defaultConf = { headers: { 'Contet-Type': 'application/json' } };
const defaultConf = { headers: { 'Content-Type': 'application/json' } };

['post', 'put', 'patch'].forEach((method) => {
this._config.set({ [method]: defaultConf });
Expand Down
6 changes: 3 additions & 3 deletions test/trae/__snapshots__/constructor.spec.js.snap
@@ -1,23 +1,23 @@
exports[`trae adds "Content-Type": "application/json" header to the methods with body 1`] = `
Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
}
`;

exports[`trae adds "Content-Type": "application/json" header to the methods with body 2`] = `
Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
}
`;

exports[`trae adds "Content-Type": "application/json" header to the methods with body 3`] = `
Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
}
`;
12 changes: 6 additions & 6 deletions test/trae/__snapshots__/defaults.spec.js.snap
Expand Up @@ -3,17 +3,17 @@ Object {
"headers": Object {},
"patch": Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
},
"post": Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
},
"put": Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
},
}
Expand All @@ -26,17 +26,17 @@ Object {
"mode": "no-cors",
"patch": Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
},
"post": Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
},
"put": Object {
"headers": Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion test/trae/__snapshots__/patch.spec.js.snap
@@ -1,6 +1,6 @@
exports[`trae -> patch makes a PATCH request to baseURL + path 1`] = `
Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
}
`;

Expand Down
2 changes: 1 addition & 1 deletion test/trae/__snapshots__/post.spec.js.snap
@@ -1,6 +1,6 @@
exports[`trae -> post makes a POST request to baseURL + path 1`] = `
Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
}
`;

Expand Down
2 changes: 1 addition & 1 deletion test/trae/__snapshots__/put.spec.js.snap
@@ -1,6 +1,6 @@
exports[`trae -> put makes a PUT request to baseURL + path 1`] = `
Object {
"Contet-Type": "application/json",
"Content-Type": "application/json",
}
`;

Expand Down

0 comments on commit e1ad14f

Please sign in to comment.