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

Commit 24c666a

Browse files
committed
tests: toJson feature
1 parent b8d7b10 commit 24c666a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/to-json.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const test = require('ava');
2+
3+
const BemEntityName = require('../index');
4+
5+
test('should return stringified cell', t => {
6+
const cell = new BemEntityName({ block: 'button' });
7+
8+
t.is(JSON.stringify([cell]), '[{"block":"button"}]');
9+
});

0 commit comments

Comments
 (0)