Skip to content

Commit df79733

Browse files
committed
test(ancestry-collection): ensure the children are model collections
1 parent cb75d93 commit df79733

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Calliope/AncestryCollection.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ describe('AncestryCollection', () => {
6262

6363
const tree = AncestryCollection.treeOf(newFolderCollection);
6464
expect(tree).toHaveLength(2);
65-
expect(tree.findByKey(folder1.getKey())!.children).toHaveLength(2);
65+
const children = tree.findByKey(folder1.getKey())!.children;
66+
expect(children).toHaveLength(2);
67+
expect(children).toBeInstanceOf(ModelCollection);
6668
});
6769
});
6870

0 commit comments

Comments
 (0)