mirror of https://github.com/BTCPrivate/copay.git
fix tests in Firefox
This commit is contained in:
parent
ab9696fdd7
commit
44a94f97ea
|
@ -16,7 +16,7 @@ describe('http utils', function() {
|
|||
send: function() {
|
||||
var self = this;
|
||||
setTimeout(function() {
|
||||
self.response = 'test';
|
||||
self.response = [1,2,3,4];
|
||||
self.error ? self.onerror() : self.onload();
|
||||
}, 10);
|
||||
},
|
||||
|
|
|
@ -21,7 +21,7 @@ describe('log utils', function() {
|
|||
log.warn('hola');
|
||||
|
||||
var arg = console.warn.getCall(0).args[0];
|
||||
arg.should.contain('util.log.js');
|
||||
//arg.should.contain('util.log.js'); /* Firefox does not include the stack track */
|
||||
arg.should.contain('hola');
|
||||
console.warn.restore();
|
||||
});
|
||||
|
|
|
@ -116,10 +116,6 @@ var createBundle = function(opts) {
|
|||
|
||||
// The following 2 lines fix karma tests
|
||||
b.require('sjcl');
|
||||
b.require('./js/util/log', {
|
||||
expose: '../../log.js'
|
||||
});
|
||||
|
||||
if (opts.debug) {
|
||||
//include dev dependencies
|
||||
b.require('sinon');
|
||||
|
|
Loading…
Reference in New Issue