mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
node 0.12 tests fail fix
This commit is contained in:
@@ -5,6 +5,7 @@ node_js:
|
||||
- "0.12"
|
||||
- iojs
|
||||
- "4"
|
||||
- "6"
|
||||
- "stable"
|
||||
|
||||
script: "npm run travis"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
npm run test:compile
|
||||
$(npm bin)/istanbul cover $(npm bin)/_mocha -- $(find test-tmp/test -name '*.spec.js') --report lcovonly
|
||||
$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/index.spec.js --report lcovonly
|
||||
cat ./coverage/lcov.info | $(npm bin)/coveralls
|
||||
npm run test:removeTmpDir
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
|
||||
npm run test:compile
|
||||
node test-tmp/test/dev/test.js
|
||||
$(npm bin)/istanbul cover $(npm bin)/_mocha -- $(find test-tmp/test -name '*.spec.js')
|
||||
$(npm bin)/istanbul cover $(npm bin)/_mocha -- test-tmp/test/index.spec.js
|
||||
npm run test:removeTmpDir
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
npm run test:compile
|
||||
$(npm bin)/mocha $(find test-tmp/test -name '*.spec.js')
|
||||
$(npm bin)/mocha test-tmp/test/index.spec.js
|
||||
npm run test:removeTmpDir
|
||||
@@ -1,7 +0,0 @@
|
||||
import { BabelPolyfill } from '../polyfills/BabelPolyfill';
|
||||
|
||||
require('source-map-support').install();
|
||||
|
||||
before(() => {
|
||||
BabelPolyfill.append();
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
import { BabelPolyfill } from './polyfills/BabelPolyfill';
|
||||
|
||||
require('source-map-support').install();
|
||||
|
||||
BabelPolyfill.append();
|
||||
|
||||
/**
|
||||
* Unit tests
|
||||
*/
|
||||
import './unit-tests/NodeUtils.spec';
|
||||
import './unit-tests/ObfuscationResult.spec';
|
||||
import './unit-tests/OptionsNormalizer.spec';
|
||||
import './unit-tests/Utils.spec';
|
||||
import './unit-tests/cli/CLIUtils.spec';
|
||||
import './unit-tests/node-obfuscators/CatchClauseObfuscator.spec';
|
||||
import './unit-tests/node-obfuscators/FunctionDeclarationObfuscator.spec';
|
||||
import './unit-tests/node-obfuscators/FunctionObfuscator.spec';
|
||||
|
||||
/**
|
||||
* Functional tests
|
||||
*/
|
||||
import './functional-tests/JavaScriptObfuscator.spec';
|
||||
import './functional-tests/JavaScriptObfuscatorCLI.spec';
|
||||
import './functional-tests/JavaScriptObfuscatorInternal.spec';
|
||||
Reference in New Issue
Block a user