Skip to content

Commit

Permalink
fixup! bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 11, 2024
1 parent 240a4e6 commit b2d5a7b
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-bigint-transform.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check
import url from 'url';
import { test } from './prepare-test-env-ava.js';
import { test } from '@endo/ses-ava/prepare-test-env-ava.js';
import bundleSource from '../src/index.js';

test('bigint transform', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-circular.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import url from 'url';
import { test } from './prepare-test-env-ava.js';
import { test } from '@endo/ses-ava/prepare-test-env-ava.js';
import bundleSource from '../src/index.js';

function evaluate(src, endowments) {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-comment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line import/order
import { test } from './prepare-test-env-ava.js';
import { test } from '@endo/ses-ava/prepare-test-env-ava.js';
import url from 'url';
import { decodeBase64 } from '@endo/base64';
import { parseArchive } from '@endo/compartment-mapper/import-archive.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-explicit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { rollup } from 'rollup';
import { resolve as pathResolve } from 'path';
import resolvePlugin from '@rollup/plugin-node-resolve';
import url from 'url';
import { test } from './prepare-test-env-ava.js';
import { test } from '@endo/ses-ava/prepare-test-env-ava.js';
import bundleSource from '../src/index.js';

test('explicit authority', async t => {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-external-fs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import url from 'url';
import { test } from './prepare-test-env-ava.js';
import { test } from '@endo/ses-ava/prepare-test-env-ava.js';
import bundleSource from '../src/index.js';

function evaluate(src, endowments) {
Expand Down
2 changes: 1 addition & 1 deletion packages/bundle-source/test/test-integrity.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import url from 'url';
import { test } from './prepare-test-env-ava.js';
import { test } from '@endo/ses-ava/prepare-test-env-ava.js';
import bundleSource from '../src/index.js';

test('integrity check', async t => {
Expand Down
3 changes: 2 additions & 1 deletion packages/errors/test/test-index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Sets up a SES environment with 'assert' global
import { test } from './prepare-test-env-ava.js';
import '@endo/lockdown/commit-debug.js';
import test from 'ava';

import { assert, throwRedacted } from '../index.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/evasive-transform/test/test-evade-censor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { evadeCensor } from '../src/index.js';
import { test } from './prepare-test-env-ava.js';
import { test } from './prepare-test-env-ava-fixture.js';

/**
* Removes all linefeeds from string
Expand Down
2 changes: 1 addition & 1 deletion packages/evasive-transform/test/test-location-unmapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import babelParser from '@babel/parser';
import { makeLocationUnmapper } from '../src/location-unmapper.js';
import { test } from './prepare-test-env-ava.js';
import { test } from './prepare-test-env-ava-fixture.js';

const { parse: parseBabel } = babelParser;

Expand Down
4 changes: 2 additions & 2 deletions packages/evasive-transform/test/test-transform-comment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test } from './prepare-test-env-ava.js';
import { test } from './prepare-test-env-ava-fixture.js';
import { transformComment } from '../src/transform-comment.js';

test('transformComment() - Node type becomes CommentBlock', async t => {
Expand Down Expand Up @@ -31,7 +31,7 @@ test('transformComment() - rewrite suspicious import(...)', async t => {
const comment = /** @type {import('@babel/types').Comment} */ ({
type: 'CommentBlock',
value: `/**
* @type {import('c:\\My Documents\\user.js')}
* @type {import('c:\\My Documents\\user.js')}
*/`,
});
transformComment(comment);
Expand Down
2 changes: 1 addition & 1 deletion packages/memoize/test/test-memoize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test } from './prepare-test-env-ava.js';
import { test } from '@endo/ses-ava/prepare-test-env-ava.js';
import { memoize } from '../src/memoize.js';

test('memoize', t => {
Expand Down

0 comments on commit b2d5a7b

Please sign in to comment.