Skip to content

Commit

Permalink
update with chai config, and don't use lib folder by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Ebdrup committed Aug 16, 2014
1 parent 895fc84 commit 45f5afe
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 27 deletions.
File renamed without changes.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Allan Ebdrup",
"name": "nodebase",
"version": "1.4.2",
"version": "1.5.2",
"repository": {
"type": "git",
"url": "https://github.com/Muscula/nodebase"
Expand All @@ -22,13 +22,6 @@
"sinon-chai": "",
"mocha-jshint": ""
},
"description": "nodebase\r --------\r This is my boilerplate for when I start a new `node.js` project. I copy this repository and start from there.",
"bugs": {
"url": "https://github.com/Muscula/nodebase/issues"
},
"directories": {
"test": "test"
},
"keywords": [
"boilerplate",
"node",
Expand Down
3 changes: 2 additions & 1 deletion test/common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
global.sinon = require('sinon');
var chai = require('chai');
chai.Assertion.includeStack = true;
chai.config.includeStack = true;
chai.config.truncateThreshold = 0; // disable truncating
global.expect = chai.expect;
chai.use(require('sinon-chai'));
8 changes: 0 additions & 8 deletions test/integration/app.spec.js

This file was deleted.

7 changes: 7 additions & 0 deletions test/integration/index.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe("When requiring index.js", function () {

it("runs without throwing an error", function () {
var app = require("../../index.js");
expect(app).to.be.ok;
});
});
9 changes: 0 additions & 9 deletions test/integration/testModule.spec.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--require ./test/common.js
--reporter dot
--reporter spec
--ui bdd
--recursive

0 comments on commit 45f5afe

Please sign in to comment.