21 lines
580 B
JavaScript
21 lines
580 B
JavaScript
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');
|
|
window.assert = require('assert');
|
|
const utils = require('../../frontend/src/utils');
|
|
window.hexToArray = utils.hexToArray;
|
|
window.arrayToHex = utils.arrayToHex;
|