Fix JS unit tests

This commit is contained in:
Sebastiaan Janssen
2019-04-22 12:10:53 +02:00
parent 687cc4630f
commit 344b7731ce
2 changed files with 13 additions and 5 deletions

View File

@@ -303,7 +303,7 @@ describe('tree service tests', function () {
});
it('returns undefined for a not found tree', function () {
//we know this exists in the mock umbraco server vars
//we know this does not exist in the mock umbraco server vars
var found = treeService.getTreePackageFolder("asdfasdf");
expect(found).not.toBeDefined();
});
@@ -315,8 +315,8 @@ describe('tree service tests', function () {
it('hasChildren has to be updated on parent', function () {
var tree = getContentTree();
while (tree.children.length > 0){
treeService.removeNode(tree.children[0])
while (tree.children.length > 0) {
treeService.removeNode(tree.children[0]);
}
expect(tree.hasChildren).toBe(false);