We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6214169 commit 7175448Copy full SHA for 7175448
test/test.js
@@ -11,7 +11,7 @@ var current;
11
describe('array-to-tree', function() {
12
describe('with valid arguments', function() {
13
14
- before(function() {
+ beforeEach(function() {
15
current = toTree({ data: initial });
16
});
17
@@ -66,13 +66,12 @@ describe('array-to-tree', function() {
66
expect(toTree({ data: modified }))
67
.to.be.deep.equal(modified);
68
69
-
70
})
71
72
describe('with different options', function() {
73
- it('should work with custom link to parent', function() {
+ it('should work with custom parents links', function() {
74
75
- var current = toTree({
+ current = toTree({
76
data: customInitial,
77
parentProperty: 'parent',
78
customID: '_id'
0 commit comments