Skip to content

Commit

Permalink
supertest-as-promised was deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Jan 26, 2017
1 parent c520cdb commit 28cfa97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ describe('My Promising Module', () => {
```
Testing your [express](http://expressjs.com/) app?
Try [supertest-as-promised](https://github.com/WhoopInc/supertest-as-promised) and async functions:
Try [supertest](https://github.com/visionmedia/supertest/) and async functions:
```js
const express = require('express')
const request = require('supertest-as-promised')
const request = require('supertest')
const app = express()
app.get('/foo', (req, res) => res.send('bar'))
Expand All @@ -172,7 +172,7 @@ describe('My express app', () => {
it('loads foo', async () => {
const response = await request(app).get('/foo')
expect(response).to.equal('bar')
expect(response.body).to.equal('bar')
})
})
Expand Down

0 comments on commit 28cfa97

Please sign in to comment.