Minor modification.

This commit is contained in:
kovacsv 2022-07-03 21:20:23 +02:00
parent 09c5648d01
commit 5bf4f11d5d
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import globals from './utils/globals.js';
import { SetGlobals } from './utils/globals.js';
import * as OV from '../source/engine/main.js';
import * as path from 'path';
@ -31,7 +31,7 @@ import property_test from './tests/property_test.js';
import parameterlist_test from './tests/parameterlist_test.js';
process.chdir (path.resolve ());
globals ();
SetGlobals ();
OV.SetExternalLibLocation ('libs');
core_test ();

View File

@ -1,8 +1,7 @@
import * as path from 'path';
import { GetArrayBufferFileContent, GetTextFileContent } from './testutils.js';
export default function SetGlobals ()
export function SetGlobals ()
{
global.atob = function (base64String) {
return Buffer.from (base64String, 'base64').toString('binary');