From cd9d2cf924a08dbff55fc7f839ddef94e8255659 Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Fri, 4 Aug 2017 17:50:59 +0300 Subject: [PATCH] (ecmascript) Imports: `isopackets.load`. --- tools/tool-testing/selftest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tool-testing/selftest.js b/tools/tool-testing/selftest.js index bb8cb8492c..b9bc63efd1 100644 --- a/tools/tool-testing/selftest.js +++ b/tools/tool-testing/selftest.js @@ -23,7 +23,7 @@ import Builder from '../isobuild/builder.js'; import { DEFAULT_TRACK } from '../packaging/catalog/catalog.js'; import { RemoteCatalog } from '../packaging/catalog/catalog-remote.js'; import { IsopackCache } from '../isobuild/isopack-cache.js'; -var isopackets = require('../tool-env/isopackets.js'); +import { load as isoPacketsLoad } from '../tool-env/isopackets.js'; import { Tropohouse } from '../packaging/tropohouse.js'; var packageMapModule = require('../packaging/package-map.js'); @@ -83,7 +83,7 @@ export const fail = markStack(function (reason) { // with 'actual' being the value that the test got and 'expected' // being the expected value export const expectEqual = markStack(function (actual, expected) { - var Package = isopackets.load('ejson'); + const Package = isoPacketsLoad('ejson'); if (! Package.ejson.EJSON.equals(actual, expected)) { throw new TestFailure("not-equal", { expected: expected,