Skip to content

Commit

Permalink
Refine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Alferov committed Oct 2, 2015
1 parent 6214169 commit 7175448
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var current;
describe('array-to-tree', function() {
describe('with valid arguments', function() {

before(function() {
beforeEach(function() {
current = toTree({ data: initial });
});

Expand Down Expand Up @@ -66,13 +66,12 @@ describe('array-to-tree', function() {
expect(toTree({ data: modified }))
.to.be.deep.equal(modified);
});

})

describe('with different options', function() {
it('should work with custom link to parent', function() {
it('should work with custom parents links', function() {

var current = toTree({
current = toTree({
data: customInitial,
parentProperty: 'parent',
customID: '_id'
Expand Down

0 comments on commit 7175448

Please sign in to comment.