Skip to content

Commit

Permalink
Fix bower.json and add a test so this doesn't happen again.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchimp committed Jun 2, 2015
1 parent 19ee07b commit bc9dfb2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"**/.md",
"**/.html",
"**/.*",
"**/.json",
"**/.json"
],
"keywords": [
"timer",
Expand Down
31 changes: 30 additions & 1 deletion test/tock.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

var assert = require('assert'),
fs = require('fs')
tock = require('../tock'),
timer = new tock();

Expand Down Expand Up @@ -43,4 +44,32 @@ describe('Tock', function () {
assert.equal(timer.msToTime(600001), '10:00.001');
});
});
});

});

describe('Meta files', function () {
it('package.json should be valid json', function (done) {
fs.readFile('package.json', 'utf-8', function (err, data) {
if (err) {
throw err;
}

var json = JSON.parse(data)

done();
});
});

it('bower.json should be valid json', function (done) {
fs.readFile('bower.json', 'utf-8', function (err, data) {
if (err) {
throw err;
}

var json = JSON.parse(data)

done();
});
});
});

0 comments on commit bc9dfb2

Please sign in to comment.