Skip to content
This repository was archived by the owner on Feb 4, 2018. It is now read-only.

Commit 5eb8a6d

Browse files
author
blond
committed
test(toString): use true instead of truthy
1 parent 3d3a0a8 commit 5eb8a6d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/to-string.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ test('should use `naming.stringify()` for block', t => {
1414

1515
entityName.toString();
1616

17-
t.truthy(spy.calledWith({ block: 'block' }));
17+
t.true(spy.calledWith({ block: 'block' }));
1818
});
1919

2020
test('should use `naming.stringify()` for elem', t => {
2121
const entityName = new BemEntityName({ block: 'block', elem: 'elem' });
2222

2323
entityName.toString();
2424

25-
t.truthy(spy.calledWith({ block: 'block', elem: 'elem' }));
25+
t.true(spy.calledWith({ block: 'block', elem: 'elem' }));
2626
});
2727

2828
test('should use `naming.stringify()` for block modifier', t => {
2929
const entityName = new BemEntityName({ block: 'block', mod: { name: 'mod', val: 'val' } });
3030

3131
entityName.toString();
3232

33-
t.truthy(spy.calledWith({ block: 'block', mod: { name: 'mod', val: 'val' } }));
33+
t.true(spy.calledWith({ block: 'block', mod: { name: 'mod', val: 'val' } }));
3434
});
3535

3636
test('should use naming.stringify() for element modifier', t => {
3737
const entityName = new BemEntityName({ block: 'block', elem: 'elem', mod: { name: 'mod', val: 'val' } });
3838

3939
entityName.toString();
4040

41-
t.truthy(spy.calledWith({ block: 'block', elem: 'elem', mod: { name: 'mod', val: 'val' } }));
41+
t.true(spy.calledWith({ block: 'block', elem: 'elem', mod: { name: 'mod', val: 'val' } }));
4242
});

0 commit comments

Comments
 (0)