Skip to content

Instantly share code, notes, and snippets.

@gurpreetatwal
Last active August 2, 2016 20:55
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 gurpreetatwal/c7e38ac9558fd12168c7ee806f37a964 to your computer and use it in GitHub Desktop.
Save gurpreetatwal/c7e38ac9558fd12168c7ee806f37a964 to your computer and use it in GitHub Desktop.
VS Code JS snippets
{
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');"
],
"description": "Log output to console"
},
"Create a test suite": {
"prefix": "suite",
"body": [
"suite('$1', function() \\{",
"\ttest('$2', function() \\{",
"\t\t$3",
"\t\\});",
"\\});"
],
"description": "Create a test suite for mocha"
},
"Create an anon function": {
"prefix": "anon",
"body": [
"function() \\{",
"\t$1",
"\\}"
],
"description": "Create an anon function"
},
"Create a single test": {
"prefix": "test",
"body": [
"test('$1', function() \\{",
"\t$2",
"\\});"
],
"description": "Create a single test"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment