testing failure
This commit is contained in:
parent
d287f67ac0
commit
e0847e08c3
@ -78,12 +78,8 @@ class FileReceiver extends EventEmitter {
|
||||
resolve(decrypted);
|
||||
})
|
||||
}),
|
||||
new Promise((resolve, reject) => {
|
||||
resolve(fdata.filename);
|
||||
}),
|
||||
new Promise((resolve, reject) => {
|
||||
resolve(hexToArray(fdata.aad));
|
||||
})
|
||||
fdata.filename,
|
||||
hexToArray(fdata.aad)
|
||||
]);
|
||||
}).then(([decrypted, fname, proposedHash]) => {
|
||||
this.emit('hashing', true);
|
||||
@ -96,12 +92,8 @@ class FileReceiver extends EventEmitter {
|
||||
} else {
|
||||
this.emit('safe', true);
|
||||
return Promise.all([
|
||||
new Promise((resolve, reject) => {
|
||||
resolve(decrypted);
|
||||
}),
|
||||
new Promise((resolve, reject) => {
|
||||
resolve(fname);
|
||||
})
|
||||
decrypted,
|
||||
fname
|
||||
]);
|
||||
}
|
||||
})
|
||||
|
@ -40,6 +40,7 @@ describe('File Sender', function() {
|
||||
})
|
||||
|
||||
it('Should get a loading event emission', function() {
|
||||
assert.fail();
|
||||
const file = new FakeFile('hello_world.txt', ['This is some data.'])
|
||||
const fs = new FileSender(file);
|
||||
let testLoading = true;
|
||||
|
Loading…
Reference in New Issue
Block a user