⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
buffer
/
bin
/
View File Name :
test.js
#!/usr/bin/env node var cp = require('child_process') var fs = require('fs') var path = require('path') var shouldRunBrowserTests = !process.env.TRAVIS_PULL_REQUEST || process.env.TRAVIS_PULL_REQUEST === 'false' var node = cp.spawn('npm', ['run', 'test-node'], { stdio: 'inherit' }) node.on('close', function (code) { if (code === 0 && shouldRunBrowserTests) { runBrowserTests() } else { process.exit(code) } }) function runBrowserTests () { var zuulYmlPath = path.join(__dirname, '..', '.zuul.yml') writeES5ZuulYml() cp.spawn('npm', ['run', 'test-browser-es5'], { stdio: 'inherit' }) .on('close', function (code) { if (code !== 0) process.exit(code) writeES6ZuulYml() cp.spawn('npm', ['run', 'test-browser-es6'], { stdio: 'inherit' }) .on('close', function (code) { process.exit(code) }) }) function writeES5ZuulYml () { fs.writeFileSync(zuulYmlPath, fs.readFileSync(path.join(__dirname, 'zuul-es5.yml'))) } function writeES6ZuulYml () { fs.writeFileSync(zuulYmlPath, fs.readFileSync(path.join(__dirname, 'zuul-es6.yml'))) } }