Skip to content

Commit d1ae93f

Browse files
fix ident
1 parent bdc2a4a commit d1ae93f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

  • recipes/axios-to-whatwg-fetch/tests

recipes/axios-to-whatwg-fetch/tests/mixed-migratable-unmigratable/expected.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const todos = await axios.get('https://api.example.com/todos');
55

66
// But this one has unsupported transformRequest, so entire file should be skipped
77
const data = await axios.post('https://api.example.com/data', { foo: 'bar' }, {
8-
transformRequest: [(data) => JSON.stringify(data)],
8+
transformRequest: [(data) => JSON.stringify(data)],
99
});
1010

1111
console.log(todos, data);
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import axios from 'axios';
22

33
const response = await axios.get('https://api.example.com/items', {
4-
headers: { 'Authorization': 'Bearer token' },
4+
headers: { 'Authorization': 'Bearer token' },
55
});
66

77
const created = await axios.request({
8-
url: 'https://api.example.com/create',
9-
method: 'POST',
10-
data: { item: 'test' },
11-
validateStatus: (status) => status < 500,
8+
url: 'https://api.example.com/create',
9+
method: 'POST',
10+
data: { item: 'test' },
11+
validateStatus: (status) => status < 500,
1212
});
1313

1414
console.log(response, created);

0 commit comments

Comments
 (0)