Skip to content

Commit 2fcb95c

Browse files
committed
Adding expectAsync toBeResolved
1 parent 5463cc1 commit 2fcb95c

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* e-thbc (expect toHaveBeenCalled)
3333
* e-nthbc (expect not toHaveBeenCalled)
3434
* e-thbcw (expect toHaveBeenCalledWith)
35+
* e-atbr (expectAsync (toBeResolved)
3536

3637
* Jest Testing
3738
* e-tms (expect toMatchSnapshot)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ You don't need to type any dashes: "ngrxr" -> "ng-rx-reducer" snippet
7272
| Snippet | Description |
7373
| ------- | ----------|
7474
| cli-cheatsheet | Cli Cheat Sheet |
75+
| e-atbr | ExpectAsync toBeResolved |
7576
| e-ntb | Expect Not toBe |
7677
| e-ntbd | Expect not toBe Defined |
7778
| e-ntbf | Expect not toBe Falsy |

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": "217 Angular Snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS, PWA & Testing) Updated for v6.0.8",
5+
"description": "218 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,6 +2645,15 @@
26452645
"$0"
26462646
]
26472647
},
2648+
"Test ExpectAsync toBeResolved": {
2649+
"prefix": "e-atbr",
2650+
"description": "ExpectAsync toBeResolved",
2651+
"types": "typescript",
2652+
"body": [
2653+
"expectAsync($1).toBeResolved();",
2654+
"$0"
2655+
]
2656+
},
26482657
"Jest Test Expect toMatchSnapshot": {
26492658
"prefix": "e-tms",
26502659
"description": "Jest Expect toMatchSnapshot",

0 commit comments

Comments
 (0)