(ecmascript) Imports: isopackets.load.

This commit is contained in:
Jesse Rosenberger
2017-08-04 17:50:59 +03:00
parent d70cdece80
commit cd9d2cf924

View File

@@ -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,