Skip to content

Commit 7175448

Browse files
author
Philipp Alferov
committed
Refine tests
1 parent 6214169 commit 7175448

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/test.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var current;
1111
describe('array-to-tree', function() {
1212
describe('with valid arguments', function() {
1313

14-
before(function() {
14+
beforeEach(function() {
1515
current = toTree({ data: initial });
1616
});
1717

@@ -66,13 +66,12 @@ describe('array-to-tree', function() {
6666
expect(toTree({ data: modified }))
6767
.to.be.deep.equal(modified);
6868
});
69-
7069
})
7170

7271
describe('with different options', function() {
73-
it('should work with custom link to parent', function() {
72+
it('should work with custom parents links', function() {
7473

75-
var current = toTree({
74+
current = toTree({
7675
data: customInitial,
7776
parentProperty: 'parent',
7877
customID: '_id'

0 commit comments

Comments
 (0)