Skip to content

Instantly share code, notes, and snippets.

@evanplaice
Last active October 4, 2019 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evanplaice/4e8960c05b0d996eb9ebbadda663562f to your computer and use it in GitHub Desktop.
Save evanplaice/4e8960c05b0d996eb9ebbadda663562f to your computer and use it in GitHub Desktop.
VSCode Tape.js Snippets
"Tape: Async Test": {
"prefix": "tape",
"body": [
"test('$1', async t => {",
"",
"\t$2",
"",
"\tt.end();",
"});"
],
"description": "Create an async Tape.js Test"
}
"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"
}
"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