<commit_before># axiosist

[![Build Status](https://travis-ci.org/Gerhut/axiosist.svg?branch=master)](https://travis-ci.org/Gerhut/axiosist)
[![Coverage Status](https://coveralls.io/repos/github/Gerhut/axiosist/badge.svg?branch=master)](https://coveralls.io/github/Gerhut/axiosist?branch=master)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

[Axios][axios] based supertest: convert node.js request handler to [axios][axios] adapter, used for node.js server unit test.

## Install

    npm install --save-dev axiosist

## Usage

```javascript
// App
const express = require('express')
const app = express()

app.get('/', (req, res) => res.status(201).send('foo'))

// Unit test in async function
const assert = require('assert')
const axiosist = require('axiosist')
<commit_msg>Replace travis badge to github actions<commit_after># axiosist

[![Node.js CI](https://github.com/Gerhut/axiosist/actions/workflows/ci.yaml/badge.svg)](https://github.com/Gerhut/axiosist/actions/workflows/ci.yaml)
[![Coverage Status](https://coveralls.io/repos/github/Gerhut/axiosist/badge.svg?branch=master)](https://coveralls.io/github/Gerhut/axiosist?branch=master)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

[Axios][axios] based supertest: convert node.js request handler to [axios][axios] adapter, used for node.js server unit test.

## Install

    npm install --save-dev axiosist

## Usage

```javascript
// App
const express = require('express')
const app = express()

app.get('/', (req, res) => res.status(201).send('foo'))

// Unit test in async function
const assert = require('assert')
const axiosist = require('axiosist')

{'fraction_non_alphanumeric': 0.173371104815864, 'fraction_numerical': 0.0056657223796034, 'mean_word_length': 5.445255474452555, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5116491', 'n_tokens_mistral': 631, 'n_tokens_neox': 591, 'n_words': 113}