Created
November 23, 2017 15:55
-
-
Save mklimek/a9fdad4766224009686588028166d054 to your computer and use it in GitHub Desktop.
Visual Studio Code simple unit test snippet using mocha and chai
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
{ | |
"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