From b007f288c747688d61293d8fb984a5049b09021b Mon Sep 17 00:00:00 2001 From: Adrien Castex Date: Thu, 15 Jun 2017 20:14:56 +0200 Subject: [PATCH] Added a missing option for the 'ResourceTester' --- lib/resource/std/resourceTester/ResourceTester.js | 1 + lib/resource/std/resourceTester/Types.d.ts | 1 + src/resource/std/resourceTester/ResourceTester.ts | 1 + src/resource/std/resourceTester/Types.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/lib/resource/std/resourceTester/ResourceTester.js b/lib/resource/std/resourceTester/ResourceTester.js index 6a15bd59..ee6bc0c1 100644 --- a/lib/resource/std/resourceTester/ResourceTester.js +++ b/lib/resource/std/resourceTester/ResourceTester.js @@ -19,6 +19,7 @@ var DefaultResourceTesterOptions = (function () { this.canBeCreated = true; this.canBeDeleted = true; this.canBeRenamed = true; + this.canGetLocks = true; this.canGetSize = true; this.canBeMoved = true; this.canWrite = true; diff --git a/lib/resource/std/resourceTester/Types.d.ts b/lib/resource/std/resourceTester/Types.d.ts index c051e56c..e49aaaab 100644 --- a/lib/resource/std/resourceTester/Types.d.ts +++ b/lib/resource/std/resourceTester/Types.d.ts @@ -10,6 +10,7 @@ export interface ResourceTesterOptions { canBeCreated: boolean; canBeDeleted: boolean; canBeRenamed: boolean; + canGetLocks: boolean; canGetSize: boolean; canBeMoved: boolean; canWrite: boolean; diff --git a/src/resource/std/resourceTester/ResourceTester.ts b/src/resource/std/resourceTester/ResourceTester.ts index 3e351f36..8cf79f8b 100644 --- a/src/resource/std/resourceTester/ResourceTester.ts +++ b/src/resource/std/resourceTester/ResourceTester.ts @@ -20,6 +20,7 @@ class DefaultResourceTesterOptions implements ResourceTesterOptions canBeCreated : boolean = true canBeDeleted : boolean = true canBeRenamed : boolean = true + canGetLocks : boolean = true canGetSize : boolean = true canBeMoved : boolean = true canWrite : boolean = true diff --git a/src/resource/std/resourceTester/Types.ts b/src/resource/std/resourceTester/Types.ts index 13a15ee8..ec57f378 100644 --- a/src/resource/std/resourceTester/Types.ts +++ b/src/resource/std/resourceTester/Types.ts @@ -12,6 +12,7 @@ export interface ResourceTesterOptions canBeCreated : boolean canBeDeleted : boolean canBeRenamed : boolean + canGetLocks : boolean canGetSize : boolean canBeMoved : boolean canWrite : boolean