2017-07-12 18:00:02 +02:00
|
|
|
class FakeFile extends Blob {
|
2017-07-13 17:59:35 +02:00
|
|
|
constructor(name, data, opt) {
|
|
|
|
super(data, opt);
|
|
|
|
this.name = name;
|
|
|
|
}
|
2017-07-12 18:00:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
window.Raven = {
|
2017-07-13 17:59:35 +02:00
|
|
|
captureException: function(err) {
|
|
|
|
console.error(err, err.stack);
|
|
|
|
}
|
2017-08-03 01:50:58 +02:00
|
|
|
};
|
2017-07-12 18:00:02 +02:00
|
|
|
|
|
|
|
window.FakeFile = FakeFile;
|
2017-08-24 23:54:02 +02:00
|
|
|
window.FileSender = require('../../app/fileSender');
|
|
|
|
window.FileReceiver = require('../../app/fileReceiver');
|
2017-07-12 18:00:02 +02:00
|
|
|
window.sinon = require('sinon');
|
2017-07-13 01:23:55 +02:00
|
|
|
window.server = window.sinon.fakeServer.create();
|
2017-07-12 18:00:02 +02:00
|
|
|
window.assert = require('assert');
|
2017-08-24 23:54:02 +02:00
|
|
|
const utils = require('../../app/utils');
|
2017-07-12 22:05:06 +02:00
|
|
|
window.hexToArray = utils.hexToArray;
|
|
|
|
window.arrayToHex = utils.arrayToHex;
|