Uname:Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64

Base Dir : /var/www/html

User : gavin


403WebShell
403Webshell
Server IP : 68.183.124.220  /  Your IP : 216.73.217.137
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : gavin ( 1000)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/gavin/workspace/happymandarin/node_modules/karma/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gavin/workspace/happymandarin/node_modules/karma/wallaby.js
const babel = require('babel-core')

module.exports = function (wallaby) {
  return {
    files: [
      {
        pattern: 'package.json',
        instrument: false
      },
      {
        pattern: 'config.tpl.js',
        instrument: false
      },
      {
        pattern: 'test/unit/certificates/server.key',
        instrument: false
      },
      {
        pattern: 'test/unit/certificates/server.crt',
        instrument: false
      },
      {
        pattern: 'test/unit/**/*.spec.js',
        ignore: true
      },
      'lib/**/*.js',
      'test/unit/**/*.js',
      'test/unit/mocha-globals.js'
    ],

    tests: [
      'test/unit/**/*.spec.js'
    ],

    compilers: {
      '**/*.js': wallaby.compilers.babel({
        babel: babel
      })
    },

    bootstrap: function (w) {
      var path = require('path')
      var mocha = w.testFramework

      mocha.suite.on('pre-require', function () {
        // always passing wallaby.js globals to mocks.loadFile
        var mocks = require('mocks')
        var loadFile = mocks.loadFile
        mocks.loadFile = function (filePath, mocks, globals, mockNested) {
          mocks = mocks || {}
          globals = globals || {}
          globals.$_$wp = global.$_$wp || {}
          globals.$_$wpe = global.$_$wpe || {}
          globals.$_$w = global.$_$w || {}
          globals.$_$wf = global.$_$wf || {}
          globals.$_$tracer = global.$_$tracer || {}
          return loadFile(filePath, mocks, globals, mockNested)
        }

        // loading mocha-globals for each run
        require(path.join(process.cwd(), 'test/unit/mocha-globals'))
      })
    },

    env: {
      type: 'node',
      params: {
        runner: '--harmony --harmony_arrow_functions'
      }
    }
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit