Skip to content

Commit

Permalink
tests: resolve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skad0 committed Sep 2, 2016
1 parent 481df49 commit f3bf343
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions test/resolve.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,27 @@ test('should allow to specify single-element deps graph as object', () => {
expect(resolvedDepsArray).to.be.deep.equal(resolvedDepsObject);
});

// test('should not return dependOn with tech match', (t) => {
// const decl = [{ block: 'A' }],
// depsItem = {
// vertex: { entity: { block: 'A' }, tech: 'bemjson.js' },
// dependOn:
// { entity: { block: 'B' }, tech: 'bemhtml.js' }
// },
// resolvedDepsObject = resolve(decl, depsItem, { tech: 'bemhtml.js' });

// t.deepEqual(resolvedDepsObject, {
// entities: [{ block: 'A' }],
// dependOn: [
// {
// tech: 'bemhtml.js',
// entities: {
// entity: { block: 'B' }
// }
// }
// ]
// });
// });
test('should not return dependOn with tech match', (t) => {
const decl = [{ block: 'A' }],
depsItem = {
vertex: { entity: { block: 'A' }, tech: 'js' },
dependOn:
{ entity: { block: 'B' }, tech: 'bemhtml.js' }
},
resolvedDepsObject = resolve(decl, depsItem, { tech: 'js' });

t.deepEqual(resolvedDepsObject, {
entities: [{ block: 'A' }],
dependOn: [
{
tech: 'bemhtml.js',
entities: [
{ block: 'B' }
]
}
]
});
});

test('should not return dependOn with tech doesnt match', (t) => {
const decl = [{ block: 'A' }],
Expand Down

0 comments on commit f3bf343

Please sign in to comment.