mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Added test cases for shelljs.env
This commit is contained in:
@@ -12,3 +12,10 @@ function test(e) {
|
||||
test(process.env); // $ Source
|
||||
|
||||
exec(getInput('data')); // $ Alert
|
||||
|
||||
function test2(e) {
|
||||
const shelljs = require('shelljs');
|
||||
exec('rm -rf ' + shelljs.env['SOME']); // $ MISSING: Alert
|
||||
exec('rm -rf ' + shelljs.env.SOME); // $ MISSING: Alert
|
||||
exec('rm -rf ' + shelljs.env); // $ MISSING: Alert
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user