diff --git a/lib/resource/std/resourceTester/Actions.js b/lib/resource/std/resourceTester/Actions.js index bcb3da66..10808bcb 100644 --- a/lib/resource/std/resourceTester/Actions.js +++ b/lib/resource/std/resourceTester/Actions.js @@ -1,6 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var VirtualFolder_1 = require("../../virtual/VirtualFolder"); +// ****************************** Actions ****************************** // function create(callback) { var _this = this; callback = this.multiple(callback, 1); @@ -49,9 +50,9 @@ function moveTo(callback) { vf1.addChild(r1, function (e) { callback(e, !e, 'addChild error of VirtualFolder', undefined, function () { r1.moveTo(vf2, 'newName', false, function (e) { - callback(e, !e, 'moveTo must fail', undefined, function () { - callback(null, r1.parent === vf2, 'The parent property of the resource must be changed'); - }); + callback(e, !e, 'moveTo must not fail' /*, undefined, () => { + callback(null, r1.parent === vf2, 'The parent property of the resource must be changed') + }*/); }); }); }); diff --git a/src/resource/std/resourceTester/Actions.ts b/src/resource/std/resourceTester/Actions.ts index f0ce2c36..96b0b462 100644 --- a/src/resource/std/resourceTester/Actions.ts +++ b/src/resource/std/resourceTester/Actions.ts @@ -1,4 +1,5 @@ import { ResourceTesterTestCallback } from './Types' +import { StandardResource } from '../../std/StandardResource' import { VirtualFolder } from '../../virtual/VirtualFolder' // ****************************** Actions ****************************** // @@ -56,9 +57,9 @@ export function moveTo(callback : ResourceTesterTestCallback) vf1.addChild(r1, (e) => { callback(e, !e, 'addChild error of VirtualFolder', undefined, () => { r1.moveTo(vf2, 'newName', false, (e) => { - callback(e, !e, 'moveTo must fail', undefined, () => { + callback(e, !e, 'moveTo must not fail'/*, undefined, () => { callback(null, r1.parent === vf2, 'The parent property of the resource must be changed') - }) + }*/) }) }) })