mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
Using webpack for testing
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
var axios = require('../../index');
|
||||
|
||||
describe('api', function () {
|
||||
it('should have request method helpers', function () {
|
||||
expect(typeof axios.get).toEqual('function');
|
||||
@@ -26,4 +28,4 @@ describe('api', function () {
|
||||
expect(typeof axios.all).toEqual('function');
|
||||
expect(typeof axios.spread).toEqual('function');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var axios = require('../../index');
|
||||
|
||||
describe('interceptors', function () {
|
||||
beforeEach(function () {
|
||||
jasmine.Ajax.install();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var axios = require('../../index');
|
||||
|
||||
describe('options', function () {
|
||||
beforeEach(function () {
|
||||
jasmine.Ajax.install();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var axios = require('../../index');
|
||||
|
||||
describe('promise', function () {
|
||||
beforeEach(function () {
|
||||
jasmine.Ajax.install();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var axios = require('../../index');
|
||||
|
||||
describe('transform', function () {
|
||||
beforeEach(function () {
|
||||
jasmine.Ajax.install();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var axios = require('../../index');
|
||||
|
||||
describe('wrapper', function () {
|
||||
beforeEach(function () {
|
||||
jasmine.Ajax.install();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
var axios = require('../../index');
|
||||
|
||||
describe('xsrf', function () {
|
||||
beforeEach(function () {
|
||||
jasmine.Ajax.install();
|
||||
|
||||
Reference in New Issue
Block a user