diff options
author | Piero Blunda <pieroblunda@gmail.com> | 2015-09-21 15:43:20 -0300 |
---|---|---|
committer | Piero Blunda <pieroblunda@gmail.com> | 2015-09-21 15:43:20 -0300 |
commit | bfe03d2531d5a44d83c78af8b77e87f169f4621e (patch) | |
tree | 472fc672664b7ba50163cf9863099896f0d9c189 /test/test-functional.js | |
parent | f99ee4ce3b377fa8a2a9c78b571df8a0c39032d7 (diff) | |
download | git-hours-bfe03d2531d5a44d83c78af8b77e87f169f4621e.zip git-hours-bfe03d2531d5a44d83c78af8b77e87f169f4621e.tar.gz git-hours-bfe03d2531d5a44d83c78af8b77e87f169f4621e.tar.bz2 |
Using 4 spaces identation
Diffstat (limited to 'test/test-functional.js')
-rw-r--r-- | test/test-functional.js | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/test/test-functional.js b/test/test-functional.js index 64f5cfa..d716e07 100644 --- a/test/test-functional.js +++ b/test/test-functional.js @@ -25,50 +25,50 @@ describe('git-hours', function() { }); describe('Since option', function(){ - it('Should analyse since today', function(done) { - exec('node index.js --since today', function(err, stdout, stderr) { - assert.ifError(err); - var work = JSON.parse(stdout); - assert.strictEqual(typeof work.total.hours, 'number'); - done(); + it('Should analyse since today', function(done) { + exec('node index.js --since today', function(err, stdout, stderr) { + assert.ifError(err); + var work = JSON.parse(stdout); + assert.strictEqual(typeof work.total.hours, 'number'); + done(); + }); }); - }); - it('Should analyse since yesterday', function(done) { - exec('node index.js --since yesterday', function(err, stdout, stderr) { - assert.ifError(err); - var work = JSON.parse(stdout); - assert.strictEqual(typeof work.total.hours, 'number'); - done(); + it('Should analyse since yesterday', function(done) { + exec('node index.js --since yesterday', function(err, stdout, stderr) { + assert.ifError(err); + var work = JSON.parse(stdout); + assert.strictEqual(typeof work.total.hours, 'number'); + done(); + }); }); - }); - it('Should analyse since last week', function(done){ - exec('node index.js --since lastweek', function(err, stdout, stderr) { - assert.ifError(err); - var work = JSON.parse(stdout); - assert.strictEqual(typeof work.total.hours, 'number'); - done(); + it('Should analyse since last week', function(done){ + exec('node index.js --since lastweek', function(err, stdout, stderr) { + assert.ifError(err); + var work = JSON.parse(stdout); + assert.strictEqual(typeof work.total.hours, 'number'); + done(); + }); }); - }); - it('Should analyse since a specific date', function(done){ - exec('node index.js --since 2015-01-01', function(err, stdout, stderr) { - assert.ifError(err); - var work = JSON.parse(stdout); - assert.notEqual(work.total.hours, 0); - done(); + it('Should analyse since a specific date', function(done){ + exec('node index.js --since 2015-01-01', function(err, stdout, stderr) { + assert.ifError(err); + var work = JSON.parse(stdout); + assert.notEqual(work.total.hours, 0); + done(); + }); }); - }); - it('Should analyse as without param', function(done){ - exec('node index.js --since always', function(err, stdout, stderr) { - assert.ifError(err); - var work = JSON.parse(stdout); - assert.equal(work.total.hours, totalHoursCount); - done(); + it('Should analyse as without param', function(done){ + exec('node index.js --since always', function(err, stdout, stderr) { + assert.ifError(err); + var work = JSON.parse(stdout); + assert.equal(work.total.hours, totalHoursCount); + done(); + }); }); - }); }); |