1.1.2 • Published 8 years ago

axios-serve v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

axios-serve

Run Axios with net.Server under the hood. Good for isolated tests.

Usage

const Axios = require('axios-serve')

const app = require('./app.js') // Express app

const request = Axios.createServer(app)

request.get('/')
  .then(res => {
    console.log(res.status === 200)
  })

Axios defaults and interceptors properties are available.

Installation

Install using npm

npm install axios-serve

License

MIT

1.1.2

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago