Last active
October 4, 2019 05:01
-
-
Save evanplaice/4e8960c05b0d996eb9ebbadda663562f to your computer and use it in GitHub Desktop.
VSCode Tape.js Snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Tape: Async Test": { | |
"prefix": "tape", | |
"body": [ | |
"test('$1', async t => {", | |
"", | |
"\t$2", | |
"", | |
"\tt.end();", | |
"});" | |
], | |
"description": "Create an async Tape.js Test" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Tape: Exception Test": { | |
"prefix": "tape", | |
"body": [ | |
"test('$1', t => {", | |
"\tt.plan(1)", | |
"", | |
"\ttry {", | |
"\t\t$2", | |
"\t} catch (e) {", | |
"\t\tt.pass('Expect exception thrown');", | |
"\t}", | |
"", | |
"\tt.end();", | |
"});" | |
], | |
"description": "Create a Tape.js Exception Test" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Tape: Sync Test": { | |
"prefix": "tape", | |
"body": [ | |
"test('$1', t => {", | |
"", | |
"\t$2", | |
"", | |
"\tt.end();", | |
"});" | |
], | |
"description": "Create a Tape.js Test" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment