Skip to content

Commit

Permalink
starting to add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
catdad committed Apr 8, 2016
1 parent b8fed5e commit fd8f61c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ function Reporter() {
var str = '';
var tableArr = [];

// TODO this table needs to be way prettier

// add headers
tableArr.push([
'Summary',
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.7",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "mocha -R spec",
"grandma": "node lib/cli.js"
},
"author": "Kiril Vatev <vatev.1@gmail.com>",
Expand All @@ -23,7 +23,11 @@
"through2": "^2.0.1",
"yargs": "^4.3.1"
},
"devDependencies": {},
"devDependencies": {
"chai": "^3.5.0",
"istanbul": "^0.4.3",
"mocha": "^2.4.5"
},
"bin": {
"grandma": "./lib/cli.js"
},
Expand Down
22 changes: 22 additions & 0 deletions test/report.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* jshint node: true, mocha: true */

var expect = require('chai').expect;
var through = require('through2');

var TESTDATA = {};

describe('[report]', function() {
it('takes an input and output stream');
it('reads data from the input stream');
it('writes results to the output stream');

describe('#json', function() {
it('provides readable json data');
});
describe('#text', function() {
it('provides pretty text data');
});
describe('#plot', function() {
it('provides an html page');
});
});

0 comments on commit fd8f61c

Please sign in to comment.