Fixed tests and brought test module naming in line with conventions.
This commit is contained in:
parent
9bd11dc7ad
commit
c75ebcf001
16
Gruntfile.js
16
Gruntfile.js
@ -210,32 +210,20 @@ module.exports = function (grunt) {
|
||||
},
|
||||
tests: {
|
||||
target: "node",
|
||||
entry: ["babel-polyfill", "./test/TestRunner.js"],
|
||||
entry: "./test/index.js",
|
||||
output: {
|
||||
filename: "index.js",
|
||||
path: "build/test"
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /prettify\.min\.js$/,
|
||||
use: "imports-loader?window=>global"
|
||||
}]
|
||||
}
|
||||
},
|
||||
node: {
|
||||
target: "node",
|
||||
entry: ["babel-polyfill", "./src/node/index.js"],
|
||||
entry: "./src/node/index.js",
|
||||
output: {
|
||||
filename: "CyberChef.js",
|
||||
path: "build/node",
|
||||
library: "CyberChef",
|
||||
libraryTarget: "commonjs2"
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
test: /prettify\.min\.js$/,
|
||||
use: "imports-loader?window=>global"
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -2,7 +2,7 @@ import Utils from "../Utils.js";
|
||||
import vkbeautify from "vkbeautify";
|
||||
import {DOMParser as dom} from "xmldom";
|
||||
import xpath from "xpath";
|
||||
import prettyPrintOne from "exports-loader?prettyPrintOne!google-code-prettify/bin/prettify.min.js";
|
||||
import prettyPrintOne from "imports-loader?window=>global!exports-loader?prettyPrintOne!google-code-prettify/bin/prettify.min.js";
|
||||
|
||||
|
||||
/**
|
||||
|
@ -5,6 +5,7 @@
|
||||
* @copyright Crown Copyright 2017
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import "babel-polyfill";
|
||||
|
||||
var Chef = require("../core/Chef.js").default;
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
* @copyright Crown Copyright 2017
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
import "babel-polyfill";
|
||||
|
||||
import TestRegister from "./TestRegister.js";
|
||||
import "./tests/operations/Base58.js";
|
||||
import "./tests/operations/Compress.js";
|
Loading…
x
Reference in New Issue
Block a user