mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-21 15:31:46 +02:00
test(carriers): an interpolated from identifier is not an import
This commit is contained in:
@@ -152,6 +152,11 @@ for (const [label, source, expected] of SCANNER_CASES) {
|
||||
});
|
||||
}
|
||||
|
||||
test('scanner: an identifier named from before a template chunk is not an import', () => {
|
||||
assert.deepEqual(validator().extractReferences('const s = `${from} is shipped as ${to}`;'),
|
||||
{ specifiers: [], packages: [], dynamic: [] });
|
||||
});
|
||||
|
||||
test('unknown flags are rejected', () => {
|
||||
const result = childProcess.spawnSync(process.execPath, [SCRIPT_PATH, '--write'], {
|
||||
cwd: REPO_ROOT, encoding: 'utf8', timeout: 120_000,
|
||||
|
||||
Reference in New Issue
Block a user