-
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(http): update superagent to 3.8.3
Plus move http tests to karma and browserstack
- Loading branch information
1 parent
b0360e4
commit fe3c5ce
Showing
15 changed files
with
4,579 additions
and
1,419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const deepmerge = require('deepmerge'); | ||
const common = require('../karma.conf.js'); | ||
|
||
const urls = [ | ||
'/querystring', | ||
'/binary', | ||
'/hello', | ||
'/pet', | ||
'/json', | ||
'/error', | ||
'/delete', | ||
]; | ||
|
||
module.exports = function(config) { | ||
config.set( | ||
deepmerge(common, { | ||
proxies: urls.reduce( | ||
(acc, curr) => ({ | ||
...acc, | ||
[curr]: {target: 'http://localhost:8070' + curr, changeOrigin: true}, | ||
}), | ||
{}, | ||
), | ||
browserStack: { | ||
name: 'Cycle.js HTTP driver', | ||
}, | ||
}), | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
hooks: { | ||
readPackage, | ||
}, | ||
}; | ||
|
||
function readPackage(pkg, context) { | ||
if (!pkg.dependencies) return pkg; | ||
|
||
if (pkg.dependencies.rxjs === '*') { | ||
pkg.dependencies.rxjs = '^5.5.11'; | ||
context.log('rxjs@* => rxjs@5 in ' + pkg.name); | ||
} | ||
|
||
return pkg; | ||
} |
Oops, something went wrong.