Skip to content

Commit c1f6b9e

Browse files
committed
Test: adding toBeDefined snippets
1 parent 31926aa commit c1f6b9e

File tree

5 files changed

+51
-7
lines changed

5 files changed

+51
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@
1010
* Testing Expect To
1111
* e-tb (expect toBe)
1212
* e-ntb (expect not toBe)
13-
* e-tbf (expect toBeFalsy)
14-
* e-ntbf (expect not toBeFalsy)
1513
* e-tm (expect toMatch)
1614
* e-ntm (expect not toMatch)
1715
* e-tmr (expect toMatch regex)
1816
* e-ntmr (expect not toMatch regex)
1917
* e-tbn (expect toBeNull)
2018
* e-ntbn (expect not toBeNull)
19+
* e-tbf (expect toBeFalsy)
20+
* e-ntbf (expect not toBeFalsy)
21+
* e-tbt (expect toBeTruthy)
22+
* e-tnbt (expect not toBeTruthy)
23+
* e-tbd (expect toBeDefined)
24+
* e-ntbd (expect not toBeDefined)
2125

2226
## 6.1.0
2327
* rxjs

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,19 @@ You don't need to type any dashes: "ngrxr" -> "ng-rx-reducer" snippet
7373
| ------- | ----------|
7474
| cli-cheatsheet | Cli Cheat Sheet |
7575
| e-ntb | Expect Not toBe |
76-
| e-ntbf | Expect not toBe Falsy |
76+
| e-ntbd | Expect not toBe Defined |
7777
| e-ntbn | Expect Not toBeNull |
78+
| e-ntbt | Expect not toBe Truthy |
7879
| e-ntm | Expect Not toMatch |
7980
| e-ntmr | Expect Not toMatch regex |
8081
| e-tb | Expect toBe |
82+
| e-tbd | Expect toBe Defined |
8183
| e-tbf | Expect toBe Falsy |
8284
| e-tbn | Expect toBeNull |
85+
| e-tbt | Expect toBe Truthy |
8386
| e-tm | Expect toMatch |
8487
| e-tmr | Expect toMatch regex |
88+
| e-tnbf | Expect not toBe Falsy |
8589
| fx-col | Flex Layout Column |
8690
| fx-col-element | Flex Layout Column with Element |
8791
| fx-col-reverse | Flex Layout Reverse Column |

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": "199 Angular Snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS, PWA & Testing) Updated for v6.0.8",
5+
"description": "201 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: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,11 +2449,47 @@
24492449
]
24502450
},
24512451
"Test Expect not toBeFalsy": {
2452-
"prefix": "e-ntbf",
2452+
"prefix": "e-tnbf",
24532453
"description": "Expect not toBe Falsy",
24542454
"types": "typescript",
24552455
"body": [
2456-
"expect($2).toBeFalsy();",
2456+
"expect($2).not.toBeFalsy();",
2457+
"$0"
2458+
]
2459+
},
2460+
"Test Expect toBeTruthy": {
2461+
"prefix": "e-tbt",
2462+
"description": "Expect toBe Truthy",
2463+
"types": "typescript",
2464+
"body": [
2465+
"expect($2).toBeTruthy();",
2466+
"$0"
2467+
]
2468+
},
2469+
"Test Expect not toBeTruthy": {
2470+
"prefix": "e-ntbt",
2471+
"description": "Expect not toBe Truthy",
2472+
"types": "typescript",
2473+
"body": [
2474+
"expect($2).not.toBeTruthy();",
2475+
"$0"
2476+
]
2477+
},
2478+
"Test Expect toBeDefined": {
2479+
"prefix": "e-tbd",
2480+
"description": "Expect toBe Defined",
2481+
"types": "typescript",
2482+
"body": [
2483+
"expect($2).toBeDefined();",
2484+
"$0"
2485+
]
2486+
},
2487+
"Test Expect not toBeDefined": {
2488+
"prefix": "e-ntbd",
2489+
"description": "Expect not toBe Defined",
2490+
"types": "typescript",
2491+
"body": [
2492+
"expect($2).not.toBeDefined();",
24572493
"$0"
24582494
]
24592495
},

0 commit comments

Comments
 (0)