Skip to content

Commit 70404ed

Browse files
committed
Adding toBeInstanceOf
1 parent aa122f3 commit 70404ed

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
* e-thtr (expect toHaveReturnedTimes)
3737
* e-thrw (expect toHaveReturnedWith)
3838
* e-thnrw (expect toHaveNthReturnedWith)
39-
* e-thlrw (expect toHaveLastReturnedWith
39+
* e-thlrw (expect toHaveLastReturnedWith)
40+
* e-tbio (expect toBeInstanceOf)
4041

4142
* Jest Testing
4243
* e-tms (expect toMatchSnapshot)

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ You don't need to type any dashes: "ngrxr" -> "ng-rx-reducer" snippet
8888
| e-tbf | Expect toBe Falsy |
8989
| e-tbgt | Expect toBeGreaterThan |
9090
| e-tbgtoe | Expect toBeGreaterThanOrEqual |
91+
| e-tbio | Expect toBeInstanceOf |
9192
| e-tblt | Expect toBeLessThan |
9293
| e-tbltoe | Expect toBeLessThanOrEqual |
9394
| e-tbn | Expect toBeNull |

package.json

+1-1
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": "222 Angular Snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS, PWA & Testing) Updated for v6.0.8",
5+
"description": "223 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

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

src/snippets.json

+9
Original file line numberDiff line numberDiff line change
@@ -2611,6 +2611,15 @@
26112611
"$0"
26122612
]
26132613
},
2614+
"Test Expect toBeInstanceOf": {
2615+
"prefix": "e-tbio",
2616+
"description": "Expect toBeInstanceOf",
2617+
"types": "typescript",
2618+
"body": [
2619+
"expect($1).toBeInstanceOf($2);",
2620+
"$0"
2621+
]
2622+
},
26142623
"Test Expect toBeCloseTo": {
26152624
"prefix": "e-tbct",
26162625
"description": "Expect toBeCloseTo",

0 commit comments

Comments
 (0)