Fixes deleting, ensures it is moved to the recycle bin when necessary or deleted permanently if already in there and fixes finding a node even if the Ids are of a different clr type
This commit is contained in:
@@ -53,10 +53,21 @@ describe('tree service tests', function () {
|
||||
|
||||
beforeEach(inject(function ($injector) {
|
||||
treeService = $injector.get('treeService');
|
||||
}));
|
||||
}));
|
||||
|
||||
describe('query existing node structure of the tree', function () {
|
||||
|
||||
it('can get a descendant node with string id', function () {
|
||||
|
||||
var tree = getContentTree();
|
||||
var found = treeService.getDescendantNode(tree, "13");
|
||||
|
||||
expect(found).toBeDefined();
|
||||
expect(found).not.toBeNull();
|
||||
expect(found.id).toBe(13);
|
||||
expect(found.name).toBe("random-name-3");
|
||||
});
|
||||
|
||||
it('can get a descendant node', function() {
|
||||
|
||||
var tree = getContentTree();
|
||||
|
||||
Reference in New Issue
Block a user