Skip to content

Commit 38abdc7

Browse files
committedJan 27, 2019
Enhancing t-pipe
1 parent 46e2f2b commit 38abdc7

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Angular BeastCode Changelog
22

3+
## 7.2.0
4+
* Enhanced
5+
* t-pipe
6+
37
## 7.0.0
48
* Material
59
* m-drag-drop-box

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"url": "https://github.com/BeastCode/VSCode-Angular-TypeScript-Snippets/issues"
1414
},
1515
"homepage": "https://github.com/BeastCode/VSCode-Angular-TypeScript-Snippets#readme",
16-
"version": "7.0.30",
16+
"version": "7.2.0",
1717
"engines": {
1818
"vscode": "^1.0.0"
1919
},

‎snippets/typescript.json

+1-1
Large diffs are not rendered by default.

‎src/snippets.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -1298,9 +1298,15 @@
12981298
"description": "Test a pipe",
12991299
"types": "typescript",
13001300
"body": [
1301+
"import {${Name}Pipe} from './${filename}pipe';",
1302+
"",
13011303
"describe('${Name}Pipe', () => {",
1302-
"\tlet pipe = new ${Name}Pipe();",
1303-
"\tit('transforms \"${input}\" to \"${output}\"', () => {",
1304+
"\tlet pipe:InitCapsPipe;",
1305+
"\tbeforeEach(() => {",
1306+
"\t\tpipe = new ${Name}Pipe();",
1307+
"\t});",
1308+
"",
1309+
"\tit('should transforms \"${input}\" to \"${output}\"', () => {",
13041310
"\t\texpect(pipe.transform('${input}')).toBe('${output}');",
13051311
"\t});",
13061312
"});",

0 commit comments

Comments
 (0)
Please sign in to comment.