mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add test for headers change
This commit is contained in:
parent
b733dcefe8
commit
ae053e2298
@ -80,7 +80,11 @@ var axiosInstance = axios.create({
|
||||
timeout: 1000
|
||||
});
|
||||
|
||||
axiosInstance.request({url: "issues/1"});
|
||||
axiosInstance.request({url: "issues/1"}).then(res => {
|
||||
if (res.headers['content-type'].startsWith('application/json')) {
|
||||
throw new Error('Unexpected content-type');
|
||||
}
|
||||
});
|
||||
|
||||
axios.all<Repository, Repository>([getRepoDetails, getRepoDetails]).then(([repo1, repo2]) => {
|
||||
var sumIds = repo1.data.id + repo2.data.id;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user