2017-07-12 16:00:02 +00:00
|
|
|
class FakeFile extends Blob {
|
|
|
|
constructor(name, data, opt) {
|
|
|
|
super(data, opt);
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.Raven = {
|
|
|
|
captureException: function(err) {
|
|
|
|
console.error(err, err.stack);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.FakeFile = FakeFile;
|
|
|
|
window.FileSender = require('../../frontend/src/fileSender');
|
|
|
|
window.FileReceiver = require('../../frontend/src/fileReceiver');
|
|
|
|
window.sinon = require('sinon');
|
2017-07-12 23:23:55 +00:00
|
|
|
window.server = window.sinon.fakeServer.create();
|
2017-07-12 16:00:02 +00:00
|
|
|
window.assert = require('assert');
|
2017-07-12 20:05:06 +00:00
|
|
|
const utils = require('../../frontend/src/utils');
|
|
|
|
window.hexToArray = utils.hexToArray;
|
|
|
|
window.arrayToHex = utils.arrayToHex;
|