Skip to content

Commit

Permalink
remove shot
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanyeah committed Dec 25, 2017
1 parent 520ecc9 commit d3c44c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
18 changes: 0 additions & 18 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 @@ -44,8 +44,7 @@
},
"devDependencies": {
"jest": "^22.0.4",
"nodemon": "^1.14.3",
"shot": "^4.0.4"
"nodemon": "^1.14.3"
},
"engines": {
"node": "8.3.0"
Expand Down
17 changes: 1 addition & 16 deletions server/utils/helpers.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const shot = require("shot");

const {
range,
urlBase64ToIntArray,
Expand Down Expand Up @@ -119,18 +117,5 @@ describe(
test("range", () => expect(range(3)).toEqual([0, 1, 2])),

test("urlBase64ToIntArray", () =>
expect(urlBase64ToIntArray(vapidPublicKey)).toEqual(vapidIntArray)),

test("body parse", () =>
shot.inject(
(req, _res) =>
bodyReader(req)
.promise()
.then(data => expect(String(data)).toBe(BODY_PAYLOAD))
.catch(fail),
{
url: "/foo",
payload: BODY_PAYLOAD
}
))
expect(urlBase64ToIntArray(vapidPublicKey)).toEqual(vapidIntArray))
);

0 comments on commit d3c44c8

Please sign in to comment.