From c050e9e45ed64cfde0bb90f00cd4a4b13374a95f Mon Sep 17 00:00:00 2001 From: jw255 Date: Sun, 22 Apr 2018 17:38:11 +0100 Subject: fixing tests --- src/serverConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/serverConfig.ts') diff --git a/src/serverConfig.ts b/src/serverConfig.ts index 136995a..5d2575a 100644 --- a/src/serverConfig.ts +++ b/src/serverConfig.ts @@ -82,7 +82,7 @@ export class Property { } public set value(value: Value) { - if (!this.readOnly) { + if (this.readOnly) { throw new Error('this property is read-only'); } else if (!types[this.type](value)) { throw new Error(`value ${value} is not of type ${this.type}`); -- cgit v1.2.1