fix tests in Firefox

This commit is contained in:
Matias Alejo Garcia 2014-12-02 18:27:48 -03:00
parent ab9696fdd7
commit 44a94f97ea
3 changed files with 2 additions and 6 deletions

View File

@ -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);
},

View File

@ -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();
});

View File

@ -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');