2017-07-12 16:00:02 +00:00
|
|
|
class FakeFile extends Blob {
|
2017-07-13 15:59:35 +00:00
|
|
|
constructor(name, data, opt) {
|
|
|
|
super(data, opt);
|
|
|
|
this.name = name;
|
|
|
|
}
|
2017-07-12 16:00:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
window.Raven = {
|
2017-07-13 15:59:35 +00:00
|
|
|
captureException: function(err) {
|
|
|
|
console.error(err, err.stack);
|
|
|
|
}
|
2017-08-02 23:50:58 +00:00
|
|
|
};
|
2017-07-12 16:00:02 +00:00
|
|
|
|
|
|
|
window.FakeFile = FakeFile;
|
2017-08-24 21:54:02 +00:00
|
|
|
window.FileSender = require('../../app/fileSender');
|
|
|
|
window.FileReceiver = require('../../app/fileReceiver');
|
2017-07-12 16:00:02 +00:00
|
|
|
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-08-24 21:54:02 +00:00
|
|
|
const utils = require('../../app/utils');
|
2017-08-31 16:43:36 +00:00
|
|
|
window.b64ToArray = utils.b64ToArray;
|
|
|
|
window.arrayToB64 = utils.arrayToB64;
|