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:
Shannon
2013-08-05 16:13:27 +10:00
parent c40084c625
commit 8aa547123f
6 changed files with 75 additions and 7 deletions

View File

@@ -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();