Added test cases for shelljs.env

This commit is contained in:
Napalys Klicius
2025-05-01 11:11:29 +02:00
parent 602500e280
commit 33d8ffa83e

View File

@@ -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
}