test(var): verify that export var works
ADD
test/moddir/var.js
+export var x = 1;

MODIFY
test/test-moddir.js
test/test-moddir.js
@@ -36,6 +36,13 @@ with (arguments[1]) {
}
},
};
+ t.deepEqual(
+ await importer({ spec: './var', url: `${rootUrl}/` }, endowments),
+ {
+ x: 1,
+ },
+ `export var works`,
+ );
t.deepEqual(
await importer({ spec: '.', url: `${rootUrl}/` }, endowments),
{

test(var): verify that export var works