Skip to content

Commit

Permalink
whoopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Aug 5, 2021
1 parent 3bfa867 commit 12ac5ea
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions test/parallel/test-policy-scopes-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,22 @@ const assert = require('assert');
}
});

// for (const href of baseURLs) {
// const redirector = manifest.getDependencyMapper(href);
// if (href.startsWith('file:///root/dir1/')) {
// assert.strictEqual(
// redirector.resolve('fs').href,
// 'test:fs2'
// );
// } else if (href === 'file:///root/dir1') {
// assert.strictEqual(
// redirector.resolve('fs').href,
// 'test:fs1'
// );
// } else {
// assert.strictEqual(redirector.resolve('fs'), null);
// }
// }
for (const href of baseURLs) {
const redirector = manifest.getDependencyMapper(href);
if (href.startsWith('file:///root/dir1/')) {
assert.strictEqual(
redirector.resolve('fs').href,
'test:fs2'
);
} else if (href === 'file:///root/dir1') {
assert.strictEqual(
redirector.resolve('fs').href,
'test:fs1'
);
} else {
assert.strictEqual(redirector.resolve('fs'), null);
}
}

assert.strictEqual(
manifest
Expand Down

0 comments on commit 12ac5ea

Please sign in to comment.