Skip to content

Commit

Permalink
Deprecates a spec
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed May 21, 2014
1 parent 049bb75 commit 1e5b102
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions spec/arethusa.depTree/dep_tree_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ describe('arethus.depTree', function() {
$provide.value('state', mockState);
$provide.value('configurator', mockConfigurator);
}));
describe('createDigraph', function() {
it('creates nodes and edges', inject(function(depTree, state, configurator) {
var digraph = depTree.createDigraph();

expect(digraph).toBeDefined();
expect(digraph.nodes().length).toEqual(3);
expect(digraph.edges().length).toEqual(2);
}));
});
// The following code was moved to a directive, which is a little harder
// to test unfortunately...

//describe('createDigraph', function() {
//it('creates nodes and edges', inject(function(depTree, state, configurator) {
//var digraph = depTree.createDigraph();

//expect(digraph).toBeDefined();
//expect(digraph.nodes().length).toEqual(3);
//expect(digraph.edges().length).toEqual(2);
//}));
//});
});

0 comments on commit 1e5b102

Please sign in to comment.