Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Feb 9, 2021
1 parent 31fbfc8 commit 1c0b607
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/parallel/test-policy-scopes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const fixtures = require('../common/fixtures');
const assert = require('assert');
const { spawnSync } = require('child_process');

const dep = fixtures.path('policy', 'main.mjs');
{
const dep = fixtures.path('policy', 'main.mjs');
const depPolicy = fixtures.path(
'policy',
'dependencies',
Expand All @@ -24,3 +24,18 @@ const dep = fixtures.path('policy', 'main.mjs');
);
assert.strictEqual(status, 0);
}
{
const dep = fixtures.path('policy', 'multi-deps.js');
const depPolicy = fixtures.path(
'policy',
'dependencies',
'dependencies-scopes-and-resources-policy.json');
const { status, stderr, stdout } = spawnSync(
process.execPath,
[
'--experimental-policy', depPolicy, dep,
]
);
console.log('%s %s', stderr, stdout)
assert.strictEqual(status, 0);
}

0 comments on commit 1c0b607

Please sign in to comment.