Skip to content

Commit 592e0e8

Browse files
Update jest.md
1 parent 4e95061 commit 592e0e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

recipes/javascript/tests/jest.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ $ npm install jest -D
4848
test('Square a number successfully', () => {
4949
expect(foo(3)).toBe(9)
5050
})
51-
52-
// To group cases, use `describe` and `it` (which is an alias for `test`).
53-
// You can also have 2 `describe` levels around `it`.
51+
```
52+
To group cases, use `describe` and `it` (which is an alias for `test`). You can also have 2 `describe` levels around `it`.
53+
```javascript
5454
describe("Hello.vue", () => {
5555
it("can square a number successfully", () => {
5656
expect(foo(3)).toEqual(9);

0 commit comments

Comments
 (0)