update javascript and typescript snippets
add snippets for bdd-style tests
This commit is contained in:
@@ -20,6 +20,9 @@ snippet :
|
|||||||
snippet :f
|
snippet :f
|
||||||
${1:method_name}: function (${2:args}) {
|
${1:method_name}: function (${2:args}) {
|
||||||
}
|
}
|
||||||
|
snippet fn
|
||||||
|
function () {
|
||||||
|
}
|
||||||
snippet fun
|
snippet fun
|
||||||
function ${1:name}(${2:args}) {
|
function ${1:name}(${2:args}) {
|
||||||
}
|
}
|
||||||
@@ -40,3 +43,9 @@ snippet lpurple
|
|||||||
console.log('%c${1}', 'font-weight:bold;color:purple;');
|
console.log('%c${1}', 'font-weight:bold;color:purple;');
|
||||||
snippet ctab
|
snippet ctab
|
||||||
console.table(${1});
|
console.table(${1});
|
||||||
|
snippet des
|
||||||
|
describe('${1}', function () {
|
||||||
|
});
|
||||||
|
snippet it
|
||||||
|
it('${1}', function () {
|
||||||
|
});
|
||||||
|
|||||||
@@ -1,2 +1,8 @@
|
|||||||
snippet ref
|
snippet ref
|
||||||
/// <reference path="${1}"/>
|
/// <reference path="${1}"/>
|
||||||
|
snippet des
|
||||||
|
describe('${1}', ()=> {
|
||||||
|
});
|
||||||
|
snippet it
|
||||||
|
it('${1}', ()=> {
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user