|
|
@ -13,11 +13,44 @@ endsnippet
|
|
|
|
snippet log "console.log"
|
|
|
|
snippet log "console.log"
|
|
|
|
console.log(${1:"${2:value}"});
|
|
|
|
console.log(${1:"${2:value}"});
|
|
|
|
endsnippet
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
|
|
|
|
snippet strict "use strict"
|
|
|
|
snippet strict "use strict"
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
endsnippet
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
|
|
|
|
snippet timeout "setTimeout" !
|
|
|
|
snippet timeout "setTimeout" !
|
|
|
|
setTimeout(function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
${1://code}
|
|
|
|
${1://code}
|
|
|
|
}, 0);
|
|
|
|
}, 0);
|
|
|
|
endsnippet
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
snippet it "jasmine it" !
|
|
|
|
|
|
|
|
it('→ $0', function () {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
snippet desc "jasmine describe" !
|
|
|
|
|
|
|
|
describe('→ $0', function () {
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
snippet expect "jasmine expect" !
|
|
|
|
|
|
|
|
expect(${0}).toBe(${1});
|
|
|
|
|
|
|
|
endsnippet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
snippet umd "Universal Module Definition" b
|
|
|
|
|
|
|
|
(function (root, factory) {
|
|
|
|
|
|
|
|
if (typeof define === "function" && define.amd) {
|
|
|
|
|
|
|
|
define(["${1:dependency}"], factory);
|
|
|
|
|
|
|
|
} else if (typeof exports === "object") {
|
|
|
|
|
|
|
|
module.exports = factory(require("$1"));
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
root.${2:Export} = factory(root.$1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}(this, function ($1) {
|
|
|
|
|
|
|
|
function $2($3) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $2;
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
endsnippet
|
|
|
|