Skip to content

Commit

Permalink
supertest has support for promises
Browse files Browse the repository at this point in the history
Use that for testing
  • Loading branch information
albbas committed Jun 20, 2024
1 parent 9564f5b commit fdd5612
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
18 changes: 1 addition & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"ava": "^3.15.0",
"eslint": "^8.44.0",
"cargo-cp-artifact": "^0.1",
"supertest": "^6.1.3",
"supertest-as-promised": "^3.1.0"
"supertest": "^6.1.3"
}
}
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require("ava");
const request = require("supertest-as-promised");
const request = require("supertest");
const express = require("express");
const { response } = require("express");

Expand Down

0 comments on commit fdd5612

Please sign in to comment.