Skip to content

Commit 3c64fbe

Browse files
committed
update: chai keys
1 parent 90f164a commit 3c64fbe

12 files changed

+22
-40
lines changed

snippets/js/tests/chai/README.md

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,85 +2,67 @@
22

33
## Prefix `tc.*`
44

5-
### [tc.equal] equal
5+
### [tc.a.e] equal
66

77
```javascript
88
assert.equal(${1:actual}, ${1:expected} ${2:, message});
99
```
1010

11-
### [tc.lengthof] lengthOf
11+
### [tc.a.lo] lengthOf
1212

1313
```javascript
1414
assert.lengthOf(${1:actual}, ${1:expected} ${2:, message});
1515
```
1616

17-
### [tc.typeof] typeOf
17+
### [tc.a.to] typeOf
1818

1919
```javascript
2020
assert.typeOf(${1:actual}, ${1:expected} ${2:, message});
2121
```
2222

23-
### [tc.tobea] to.be.a
23+
### [tc.e.tba] to.be.a
2424

2525
```javascript
2626
expect(${1}).to.be.a(${2});
2727
```
2828

29-
### [tc.toequal] to.equal
29+
### [tc.e.te] to.equal
3030

3131
```javascript
3232
expect(${1}).to.equal(${2});
3333
```
3434

35-
### [tc.tohl] to.have.length
35+
### [tc.e.thl] to.have.length
3636

3737
```javascript
3838
expect(${1}).to.have.length(${2});
3939
```
4040

41-
### [tc.tohp] to.have.property
41+
### [tc.e.thp] to.have.property
4242

4343
```javascript
4444
expect(${1}).to.have.property(${2}).with.length(${3});
4545
```
4646

47-
### [tc.equal] equal
48-
49-
```javascript
50-
assert.equal(${1:actual}, ${1:expected} ${2:, message});
51-
```
52-
53-
### [tc.lengthof] lengthOf
54-
55-
```javascript
56-
assert.lengthOf(${1:actual}, ${1:expected} ${2:, message});
57-
```
58-
59-
### [tc.typeof] typeOf
60-
61-
```javascript
62-
assert.typeOf(${1:actual}, ${1:expected} ${2:, message});
63-
```
64-
65-
### [tc.bea] be.a
47+
### [tc.s.ba] be.a
6648

6749
```javascript
6850
${1}.should.be.a(${2});
6951
```
7052

71-
### [tc.equal] equal
53+
### [tc.s.e] equal
7254

7355
```javascript
7456
${1}.should.equal(${2});
7557
```
7658

77-
### [tc.hlength] have.length
59+
### [tc.s.hl] have.length
7860

7961
```javascript
8062
${1}.should.have.length(${2});
8163
```
8264

83-
### [tc.hproperty] have.property
65+
### [tc.s.hp] have.property
8466

8567
```javascript
8668
${1}.should.have.property(${2}).with.length(${3});

snippets/js/tests/chai/bdd-chai-expect-to-be-a.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
expect(${1}).to.be.a(${2});
44
]]></content>
5-
<tabTrigger>tc.tobea</tabTrigger>
5+
<tabTrigger>tc.e.tba</tabTrigger>
66
<description>tc - Expect to.be.a</description>
77
</snippet>

snippets/js/tests/chai/bdd-chai-expect-to-equal.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
expect(${1}).to.equal(${2});
44
]]></content>
5-
<tabTrigger>tc.toequal</tabTrigger>
5+
<tabTrigger>tc.e.te</tabTrigger>
66
<description>tc - Expect to.equal</description>
77
</snippet>

snippets/js/tests/chai/bdd-chai-expect-to-have-length.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
expect(${1}).to.have.length(${2});
44
]]></content>
5-
<tabTrigger>tc.tohl</tabTrigger>
5+
<tabTrigger>tc.e.thl</tabTrigger>
66
<description>tc - Expect to.have.length</description>
77
</snippet>

snippets/js/tests/chai/bdd-chai-expect-to-have-property.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
expect(${1}).to.have.property(${2}).with.length(${3});
44
]]></content>
5-
<tabTrigger>tc.tohp</tabTrigger>
5+
<tabTrigger>tc.e.thp</tabTrigger>
66
<description>tc - Expect to.have.property</description>
77
</snippet>

snippets/js/tests/chai/bdd-chai-should-be-a.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
${1}.should.be.a(${2});
44
]]></content>
5-
<tabTrigger>tc.bea</tabTrigger>
5+
<tabTrigger>tc.s.ba</tabTrigger>
66
<description>tc - Should be.a</description>
77
</snippet>

snippets/js/tests/chai/bdd-chai-should-equal.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
${1}.should.equal(${2});
44
]]></content>
5-
<tabTrigger>tc.equal</tabTrigger>
5+
<tabTrigger>tc.s.e</tabTrigger>
66
<description>tc - Should equal</description>
77
</snippet>

snippets/js/tests/chai/bdd-chai-should-have-length.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
${1}.should.have.length(${2});
44
]]></content>
5-
<tabTrigger>tc.hlength</tabTrigger>
5+
<tabTrigger>tc.s.hl</tabTrigger>
66
<description>tc - Should have.length</description>
77
</snippet>

snippets/js/tests/chai/bdd-chai-should-have-property.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
${1}.should.have.property(${2}).with.length(${3});
44
]]></content>
5-
<tabTrigger>tc.hproperty</tabTrigger>
5+
<tabTrigger>tc.s.hp</tabTrigger>
66
<description>tc - Should have.property</description>
77
</snippet>

snippets/js/tests/chai/tdd-chai-assert-equal.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<content><![CDATA[
33
assert.equal(${1:actual}, ${1:expected} ${2:, message});
44
]]></content>
5-
<tabTrigger>tc.equal</tabTrigger>
5+
<tabTrigger>tc.a.e</tabTrigger>
66
<description>tc - Assert equal</description>
77
</snippet>

0 commit comments

Comments
 (0)