Last active
August 2, 2016 20:55
-
-
Save gurpreetatwal/c7e38ac9558fd12168c7ee806f37a964 to your computer and use it in GitHub Desktop.
VS Code 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
{ | |
"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