10000 Provide better formatting support on github · andrew-codes/vscode-snippets@cdad79b · GitHub
[go: up one dir, main page]

Skip to content

Commit cdad79b

Browse files
committed
Provide better formatting support on github
1 parent 95a0403 commit cdad79b

File tree

9 files changed

+98
-92
lines changed

9 files changed

+98
-92
lines changed

packages/jest-snippets/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,37 @@ There you have either the option to show the already installed snippets or insta
1717
## Snippets
1818

1919
### beforeAll (`ba`)
20-
```
20+
```javascript
2121
beforeAll(() => {
2222
$1
2323
});$0
2424
```
2525
### beforeEach (`be`)
26-
```
26+
```javascript
2727
beforeEach(() => {
2828
$1
2929
});$0
3030
```
3131
### afterAll (`aa`)
32-
```
32+
```javascript
3333
after(() => {
3434
$1
3535
});$0
3636
```
3737
### afterEach (`ae`)
38-
```
38+
```javascript
3939
afterEach(() => {
4040
$1
4141
});$0
4242
```
4343
### suite (`ste`)
44-
```
44+
```javascript
4545
suite('$1', () => {
4646
$2
4747
});$0
4848
```
4949
### test (`tst`)
50-
```
50+
```javascript
5151
test('$1', () => {
5252
$2
5353
});

packages/jest-snippets/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"path": "./snippets/snippets.json"
2929
}
3030
]
31-
}
31+
},
32+
"language": "javascript"
3233
}

packages/mocha-snippets/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,61 +17,61 @@ There you have either the option to show the already installed snippets or insta
1717
## Snippets
1818

1919
### before (`ba`)
20-
```
20+
```javascript
2121
before(function() => {
2222
$1
2323
});$0
2424
```
2525
### beforeEach (`be`)
26-
```
26+
```javascript
2727
beforeEach(function() => {
2828
$1
2929
});$0
3030
```
3131
### After (`aa`)
32-
```
32+
```javascript
3333
after(function() => {
3434
$1
3535
});$0
3636
```
3737
### afterEach (`ae`)
38-
```
38+
```javascript
3939
afterEach(function() => {
4040
$1
4141
});$0
4242
```
4343
### suite (`ste`)
44-
```
44+
```javascript
4545
suite('$1', function() => {
4646
$2
4747
});$0
4848
```
4949
### suiteSetup (`steup`)
50-
```
50+
```javascript
5151
suiteSetup(function() => {
5252
$1
5353
});$0
5454
```
5555
### setup (`setup`)
56-
```
56+
```javascript
5757
setup(function() => {
5858
$1
5959
});$0
6060
```
6161
### suiteTeardown (`stedown`)
62-
```
62+
```javascript
6363
suiteTeardown(function() => {
6464
$1
6565
});$0
6666
```
6767
### teardown (`teardown`)
68-
```
68+
```javascript
6969
teardown(function() => {
7070
$1
7171
});$0
7272
```
7373
### test (`tst`)
74-
```
74+
```javascript
7575
test('$1', function() => {
7676
$2
7777
});

packages/mocha-snippets/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"path": "./snippets/snippets.json"
2929
}
3030
]
31-
}
31+
},
32+
"language": "javascript"
3233
}

0 commit comments

Comments
 (0)
0