Skip to content

Commit 5110f39

Browse files
committed
update snippet
1 parent b4df7e0 commit 5110f39

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

snippets.cson

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
describe('${1:task number ('01')} ${2:function name}', function () {
88
99
it('should exist', function () {
10-
expect(${2}).to.not.be.undefined;
10+
expect(${2}).to.be.defined;
1111
});
1212
1313
it('should be a function', function () {
@@ -34,7 +34,7 @@
3434
describe('${1:task number ('01')} ${2:variable name}', function () {
3535
3636
it('should exist', function () {
37-
expect(${2}).to.not.be.undefined;
37+
expect(${2}).to.be.defined;
3838
});
3939
4040
it('should be an array', function () {
@@ -60,7 +60,7 @@
6060
describe('${1:task number ('01')} ${2:variable name}', function () {
6161
6262
it('should exist', function () {
63-
expect(${2}).to.not.be.undefined;
63+
expect(${2}).to.be.defined;
6464
});
6565
6666
it('should be an object', function () {

tslint.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"no-shadowed-variable": true,
3333
"no-string-literal": true,
3434
"no-switch-case-fall-through": true,
35-
"no-trailing-comma": true,
3635
"no-trailing-whitespace": true,
3736
"no-unused-expression": true,
3837
"no-unused-variable": true,
@@ -43,12 +42,12 @@
4342
"check-open-brace",
4443
"check-catch",
4544
"check-else",
45+
"check-finally",
4646
"check-whitespace"
4747
],
4848
"quotemark": [true, "single"],
4949
"radix": true,
5050
"semicolon": true,
51-
"sort-object-literal-keys": false,
5251
"triple-equals": [true, "allow-null-check"],
5352
"variable-name": false,
5453
"whitespace": [true,

0 commit comments

Comments
 (0)