Skip to content

Instantly share code, notes, and snippets.

@mklimek
Created November 23, 2017 15:55
Show Gist options
  • Save mklimek/a9fdad4766224009686588028166d054 to your computer and use it in GitHub Desktop.
Save mklimek/a9fdad4766224009686588028166d054 to your computer and use it in GitHub Desktop.
Visual Studio Code simple unit test snippet using mocha and chai
{
"mocha with chai simple": {
"prefix": "chai",
"body": [
"import {expect} from 'chai'",
"import $1 from '@/$1'",
"\ndescribe('lets test $1', () => {",
"\n\tit('first case', () => {",
"\t\texpect($1).to.not.equal(undefined)",
"\t})",
"\n})"
],
"description": "mocka test suit using chai asssertions"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment