Skip to content

Commit 88a43c5

Browse files
committed
address defective snippets
1 parent f658c92 commit 88a43c5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/cypress-snippets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ There you have either the option to show the already installed snippets or insta
1818

1919
### context (`cyctx`)
2020
```javascript
21-
ctx('$1', () => {
21+
context('$1', () => {
2222
$0
2323
});
2424
```

packages/cypress-snippets/snippets/snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"context": {
33
"prefix": "cyctx",
4-
"body": ["ctx('$1', () => {", "\t$0", "});"],
4+
"body": ["context('$1', () => {", "\t$0", "});"],
55
"description": "Context"
66
},
77
"visit": {

packages/mocha-snippets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ test('$1', () => {
7474
```javascript
7575
describe('$1', () => {
7676
$2
77-
}$0
77+
});$0
7878
```

packages/mocha-snippets/snippets/snippets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"describe": {
4848
"prefix": "dsc",
49-
"body": ["describe('$1', () => {", "\t$2", "}$0"],
50-
"describe": "Describe"
49+
"body": ["describe('$1', () => {", "\t$2", "});$0"],
50+
"description": "Describe"
5151
}
5252
}

0 commit comments

Comments
 (0)