eslintify all test files
This commit is contained in:
parent
884bc9333d
commit
dbf0be2db5
44 changed files with 1469 additions and 1484 deletions
|
@ -22,7 +22,7 @@ const fakeAPI = {
|
|||
// sendMessages: fakeCall,
|
||||
setSignedPreKey: fakeCall,
|
||||
|
||||
getKeysForNumber(number, deviceId) {
|
||||
getKeysForNumber(number) {
|
||||
const res = getKeysForNumberMap[number];
|
||||
if (res !== undefined) {
|
||||
delete getKeysForNumberMap[number];
|
||||
|
@ -32,14 +32,14 @@ const fakeAPI = {
|
|||
},
|
||||
|
||||
sendMessages(destination, messageArray) {
|
||||
for (i in messageArray) {
|
||||
for (let i = 0, max = messageArray.length; i < max; i += 1) {
|
||||
const msg = messageArray[i];
|
||||
if (
|
||||
(msg.type != 1 && msg.type != 3) ||
|
||||
(msg.type !== 1 && msg.type !== 3) ||
|
||||
msg.destinationDeviceId === undefined ||
|
||||
msg.destinationRegistrationId === undefined ||
|
||||
msg.body === undefined ||
|
||||
msg.timestamp == undefined ||
|
||||
msg.timestamp === undefined ||
|
||||
msg.relay !== undefined ||
|
||||
msg.destination !== undefined
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue