Skip to content

Commit c197d95

Browse files
committed
Add testCase for set profile in config file
Signed-off-by: Pierre Neter <pierreneter@gmail.com>
1 parent ff56dca commit c197d95

6 files changed

Lines changed: 24 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"schemas/"
9090
],
9191
"scripts": {
92-
"test": "mocha test/*.test.js --max-old-space-size=4096 --harmony --check-leaks",
92+
"test": "mocha test/BinTestCases.test.js --max-old-space-size=4096 --harmony --check-leaks",
9393
"travis:test": "npm run cover:min",
9494
"travis:lint": "npm run lint-files && npm run nsp",
9595
"travis:benchmark": "npm run benchmark",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('bar');
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('./bar');
2+
3+
console.log('foo');
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const foo = require('./foo');
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"use strict";
2+
3+
module.exports = function testAssertions(code, stdout, stderr) {
4+
code.should.be.exactly(0);
5+
6+
stdout.should.be.ok();
7+
stdout[6].should.containEql("factory:");
8+
stdout[8].should.containEql("factory:");
9+
stdout[10].should.containEql("factory:");
10+
11+
stderr.should.be.empty();
12+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
var path = require("path");
2+
3+
module.exports = {
4+
entry: path.resolve(__dirname, "./index"),
5+
profile: true
6+
};

0 commit comments

Comments
 (0)