Merge pull request #50 from maraoz/feature/add-sinonjs
added sinon and basic test
This commit is contained in:
commit
f43468fdff
|
@ -3,7 +3,7 @@
|
|||
var _ = require('lodash');
|
||||
|
||||
// Load app configuration
|
||||
|
||||
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
|
||||
module.exports = _.extend(
|
||||
require(__dirname + '/../config/env/all.js'),
|
||||
require(__dirname + '/../config/env/' + process.env.NODE_ENV + '.js') || {});
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
"name": "Manuel Araoz",
|
||||
"email": "manuelaraoz@gmail.com"
|
||||
}
|
||||
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/bitpay/mystery/issues"
|
||||
|
@ -61,8 +60,8 @@
|
|||
"grunt-mocha-test": "~0.8.1",
|
||||
"should": "~2.1.1",
|
||||
"view-helpers": "latest",
|
||||
"socket.io": "~0.9.16"
|
||||
|
||||
"socket.io": "~0.9.16",
|
||||
"sinon": "~1.7.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-contrib-watch": "latest",
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
var assert = require('assert');
|
||||
var PeerSync = require('../../lib/PeerSync.js').class();
|
||||
describe('Unit testing PeerSync', function() {
|
||||
var ps = new PeerSync();
|
||||
describe('#init()', function() {
|
||||
it('should return with no errors', function() {
|
||||
assert.doesNotThrow(function(){
|
||||
ps.init();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue