2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Merge remote-tracking branch 'mzabriskie/master'

This commit is contained in:
Nick Uraltsev
2015-10-22 19:12:07 -07:00
4 changed files with 16 additions and 6 deletions
Vendored
+1
View File
@@ -29,6 +29,7 @@ declare module axios {
interface Response { interface Response {
data?: any; data?: any;
status?: number; status?: number;
statusText?: string;
headers?: any; headers?: any;
config?: any; config?: any;
} }
+14 -4
View File
@@ -15,7 +15,7 @@ module.exports = function(config) {
// list of files / patterns to load in the browser // list of files / patterns to load in the browser
files: [ files: [
'webpack.tests.js' 'test/specs/**/*.spec.js'
], ],
@@ -28,17 +28,27 @@ module.exports = function(config) {
// preprocess matching files before serving them to the browser // preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: { preprocessors: {
'webpack.tests.js': ['webpack', 'sourcemap', 'coverage'] 'test/specs/**/*.spec.js': ['webpack', 'sourcemap']
}, },
webpack: { webpack: {
cache: true,
devtool: 'inline-source-map',
module: {
postLoaders: [
{
test: /\.js$/,
exclude: /(node_modules|test)/,
loader: 'istanbul-instrumenter'
}
]
},
externals: [ externals: [
{ {
'./adapters/http': 'var undefined' './adapters/http': 'var undefined'
} }
], ]
devtool: 'inline-source-map'
}, },
webpackServer: { webpackServer: {
+1
View File
@@ -40,6 +40,7 @@
"grunt-ts": "5.0.0-beta.5", "grunt-ts": "5.0.0-beta.5",
"grunt-update-json": "0.2.1", "grunt-update-json": "0.2.1",
"grunt-webpack": "1.0.11", "grunt-webpack": "1.0.11",
"istanbul-instrumenter-loader": "^0.1.3",
"jasmine-core": "2.3.4", "jasmine-core": "2.3.4",
"karma": "0.13.10", "karma": "0.13.10",
"karma-coverage": "0.5.2", "karma-coverage": "0.5.2",
-2
View File
@@ -1,2 +0,0 @@
var context = require.context('./test/specs', true, /\.js$/);
context.keys().forEach(context);