Skip to content

Commit

Permalink
added failing MAGIC test which we can verify works later (expectedOut…
Browse files Browse the repository at this point in the history
…put will have to be changed)
  • Loading branch information
d98762625 committed May 28, 2020
1 parent 2dbf292 commit c335723
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ typings/
# next.js build output
.next

.vscode/*
.vscode/*
16 changes: 16 additions & 0 deletions test/bake.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import request from "supertest";
import app from "../app";


describe("GET /bake", function() {
it("doesnt exist", function(done) {
request(app)
Expand Down Expand Up @@ -191,4 +192,19 @@ describe("POST /bake", function() {
.expect("Invalid data type string. No matching enum.", done);
});

it("should perform MAGIC", (done) => {
request(app)
.post("/bake")
.set("Content-Type", "application/json")
.send({
input: "You're a wizard, Harry.",
recipe: [
"To Hex",
"Magic"
]
})
.expect(200)
.expect("something", done);
});

});

0 comments on commit c335723

Please sign in to comment.