Skip to content

Commit

Permalink
Merge pull request #97 from bem-sdk/greenkeeper-ava-0.14.0
Browse files Browse the repository at this point in the history
Update ava to version 0.14.0 🚀
  • Loading branch information
blond committed Apr 8, 2016
2 parents 45b5fec + a928bb8 commit d187457
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"index.js"
],
"devDependencies": {
"ava": "0.13.0",
"ava": "0.14.0",
"coveralls": "2.11.9",
"eslint": "2.6.0",
"eslint-config-pedant": "0.1.1",
Expand Down
12 changes: 6 additions & 6 deletions test/fields.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ const test = require('ava');
const naming = require('../index');

test('should have elemDelim field', t => {
t.ok(naming.elemDelim);
t.truthy(naming.elemDelim);
});

test('should have modDelim field', t => {
t.ok(naming.modDelim);
t.truthy(naming.modDelim);
});

test('should have modValDelim field', t => {
t.ok(naming.modValDelim);
t.truthy(naming.modValDelim);
});

test('should create namespace with elemDelim field', t => {
const myNaming = naming();

t.ok(myNaming.elemDelim);
t.truthy(myNaming.elemDelim);
});

test('should create namespace with modDelim field', t => {
const myNaming = naming();

t.ok(myNaming.modDelim);
t.truthy(myNaming.modDelim);
});

test('should create namespace with modValDelim field', t => {
const myNaming = naming();

t.ok(myNaming.modValDelim);
t.truthy(myNaming.modValDelim);
});
6 changes: 3 additions & 3 deletions test/namespace.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ const bemNaming = require('../index');
test('should be a namespace', t => {
const entities = ['block__elem'].map(bemNaming.parse);

t.same(entities, [{ block: 'block', elem: 'elem' }]);
t.deepEqual(entities, [{ block: 'block', elem: 'elem' }]);
});

test('should be a original namespace', t => {
const myNaming = bemNaming();
const entities = ['block__elem'].map(myNaming.parse);

t.same(entities, [{ block: 'block', elem: 'elem' }]);
t.deepEqual(entities, [{ block: 'block', elem: 'elem' }]);
});

test('should be a custom namespace', t => {
const myNaming = bemNaming({ elem: '==' });
const entities = ['block==elem'].map(myNaming.parse);

t.same(entities, [{ block: 'block', elem: 'elem' }]);
t.deepEqual(entities, [{ block: 'block', elem: 'elem' }]);
});

0 comments on commit d187457

Please sign in to comment.