Skip to content

Commit 37128ab

Browse files
[mabel] Modify testing example 1 to use template strings
1 parent 67da2a8 commit 37128ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing_example_1.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ describe("GET /books", () => {
3131
it("should get a book by id", async done => {
3232
const id = "3";
3333
const response = await request(app)
34-
.get("/books/" + id)
34+
.get(`/books/${id}`)
3535
.expect(200);
36-
expect(response.text).toEqual("You request information on book " + id);
36+
expect(response.text).toEqual(`You request information on book ${id}`);
3737
done();
3838
});
3939
});

0 commit comments

Comments
 (0)