Fixed tests and Node version to work with modules

This commit is contained in:
n1474335 2017-08-25 00:44:22 +01:00
parent a4aee761c2
commit 6af82680f1
12 changed files with 12 additions and 12 deletions

View file

@ -12,7 +12,7 @@ import CharEnc from "../../operations/CharEnc.js";
* @copyright Crown Copyright 2017
* @license Apache-2.0
*/
let OpModules = self.OpModules || {};
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
OpModules.CharEnc = {
"Encode text": CharEnc.runEncode,