Skip to content

Commit 424c641

Browse files
committed
Test: Adding t-etbf snippet
1 parent b7d0535 commit 424c641

File tree

5 files changed

+38
-14
lines changed

5 files changed

+38
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
* Testing snippets
88
* t-describe-it
99
* t-it
10+
* t-ite
1011
* t-component-synchronous
1112
* t-component-async
1213
* t-pipe
1314
* t-etb (expect toBe)
1415
* t-entb (expect not toBe)
16+
* t-etbf (expect toBeFalsy)
1517
* t-be (beforeEach)
1618
* t-ae (afterEach)
1719
* t-ba (beforeAll)

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,15 @@ You don't need to type any dashes: "ngrxr" -> "ng-rx-reducer" snippet
257257
| t-aa | afterAll Example |
258258
| t-ae | afterEach Example |
259259
| t-ba | beforeAll Example |
260-
| t-be | beforeEach Example |
260+
| t-be | beforeEach |
261261
| t-component-async | TODO |
262262
| t-component-synchronous | TODO |
263-
| t-describe-it | Describe, It & Expect Example |
264-
| t-entb | Expect Not toBe Example |
263+
| t-describe-it | Describe, It & Expect |
264+
| t-entb | Expect Not toBe |
265265
| t-etb | Expect toBe Example |
266-
| t-it | It & Expect Example |
266+
| t-etbf | Expect toBe Falsy |
267+
| t-it | It |
268+
| t-ite | It and Expect |
267269
| t-pipe | Test a pipe |
268270
| wat | A lightning talk by Gary Bernhardt from CodeMash 2012. ng-wat talk by Shai Reznik in 2015 |
269271

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Angular-BeastCode",
33
"publisher": "Mikael",
44
"displayName": "Angular 6 Snippets - TypeScript, Html, Angular Material, ngRx, RxJS & Flex Layout",
5-
"description": "190 Angular Snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS, PWA & Testing) Updated for v6.0.8",
5+
"description": "192 Angular Snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS, PWA & Testing) Updated for v6.0.8",
66
"icon": "images/Angular4.png",
77
"license": "MIT",
88
"repository": {

snippets/typescript.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/snippets.json

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,9 +2342,9 @@
23422342
"$0"
23432343
]
23442344
},
2345-
"Test Describe, It & Expect Example": {
2345+
"Test Describe, It & Expect": {
23462346
"prefix": "t-describe-it",
2347-
"description": "Describe, It & Expect Example",
2347+
"description": "Describe, It & Expect",
23482348
"types": "typescript",
23492349
"body": [
23502350
"describe('${1:Description}', () => {",
@@ -2355,20 +2355,31 @@
23552355
"$0"
23562356
]
23572357
},
2358-
"Test It & Expect Example": {
2358+
"Test It and Expect": {
2359+
"prefix": "t-ite",
2360+
"description": "It and Expect",
2361+
"types": "typescript",
2362+
"body": [
2363+
"it('${1:Test}', () => {",
2364+
"\texpect($2).toBe$3($4);",
2365+
"});",
2366+
"$0"
2367+
]
2368+
},
2369+
"Test It": {
23592370
"prefix": "t-it",
2360-
"description": "It & Expect Example",
2371+
"description": "It",
23612372
"types": "typescript",
23622373
"body": [
23632374
"it('${1:Test}', () => {",
2364-
"\texpect($2).toBe($3);",
2375+
"\t$2",
23652376
"});",
23662377
"$0"
23672378
]
23682379
},
2369-
"Test beforeEach Example": {
2380+
"Test beforeEach": {
23702381
"prefix": "t-be",
2371-
"description": "beforeEach Example",
2382+
"description": "beforeEach",
23722383
"types": "typescript",
23732384
"body": [
23742385
"beforeEach(function() {",
@@ -2421,13 +2432,22 @@
24212432
},
24222433
"Test Expect Not toBe Example": {
24232434
"prefix": "t-entb",
2424-
"description": "Expect Not toBe Example",
2435+
"description": "Expect Not toBe",
24252436
"types": "typescript",
24262437
"body": [
24272438
"expect($2).not.toBe($3);",
24282439
"$0"
24292440
]
24302441
},
2442+
"Test Expect toBeFalsy Example": {
2443+
"prefix": "t-etbf",
2444+
"description": "Expect toBe Falsy",
2445+
"types": "typescript",
2446+
"body": [
2447+
"expect($2).toBeFalsy();",
2448+
"$0"
2449+
]
2450+
},
24312451
"Angular Http Interceptor": {
24322452
"prefix": "ng-http-interceptor",
24332453
"description": "Intercept an outgoing HttpRequest and optionally transform it or the response.",

0 commit comments

Comments
 (0)