@@ -17,12 +17,12 @@ describe("online tests", function () {
17
17
if ( process . env . COVERAGE && ! process . env . COVERAGE_OFFLINE ) {
18
18
console . error (
19
19
"CAN NOT RUN COVERAGE correctly: Missing CHATMAIL_DOMAIN environment variable!\n\n" ,
20
- "You can set COVERAGE_OFFLINE=1 to circumvent this check and skip the online tests, but those coverage results will be wrong, because some functions can only be tested in the online test"
20
+ "You can set COVERAGE_OFFLINE=1 to circumvent this check and skip the online tests, but those coverage results will be wrong, because some functions can only be tested in the online test" ,
21
21
) ;
22
22
process . exit ( 1 ) ;
23
23
}
24
24
console . log (
25
- "Missing CHATMAIL_DOMAIN environment variable!, skip integration tests"
25
+ "Missing CHATMAIL_DOMAIN environment variable!, skip integration tests" ,
26
26
) ;
27
27
this . skip ( ) ;
28
28
}
@@ -36,15 +36,15 @@ describe("online tests", function () {
36
36
account1 = createTempUser ( process . env . CHATMAIL_DOMAIN ) ;
37
37
if ( ! account1 || ! account1 . email || ! account1 . password ) {
38
38
console . log (
39
- "We didn't got back an account from the api, skip integration tests"
39
+ "We didn't got back an account from the api, skip integration tests" ,
40
40
) ;
41
41
this . skip ( ) ;
42
42
}
43
43
44
44
account2 = createTempUser ( process . env . CHATMAIL_DOMAIN ) ;
45
45
if ( ! account2 || ! account2 . email || ! account2 . password ) {
46
46
console . log (
47
- "We didn't got back an account2 from the api, skip integration tests"
47
+ "We didn't got back an account2 from the api, skip integration tests" ,
48
48
) ;
49
49
this . skip ( ) ;
50
50
}
@@ -92,7 +92,7 @@ describe("online tests", function () {
92
92
accountId2 ,
93
93
chatIdOnAccountB ,
94
94
false ,
95
- false
95
+ false ,
96
96
) ;
97
97
98
98
expect ( messageList ) . have . length ( 1 ) ;
@@ -124,11 +124,11 @@ describe("online tests", function () {
124
124
accountId2 ,
125
125
chatIdOnAccountB ,
126
126
false ,
127
- false
127
+ false ,
128
128
) ;
129
129
const message = await dc . rpc . getMessage (
130
130
accountId2 ,
131
- messageList . reverse ( ) [ 0 ]
131
+ messageList . reverse ( ) [ 0 ] ,
132
132
) ;
133
133
expect ( message . text ) . equal ( "Hello2" ) ;
134
134
// Send message back from B to A
@@ -150,7 +150,7 @@ describe("online tests", function () {
150
150
const info = await dc . rpc . getProviderInfo ( acc , "example.com" ) ;
151
151
expect ( info ) . to . be . not . null ;
152
152
expect ( info ?. overviewPage ) . to . equal (
153
- "https://providers.delta.chat/example-com"
153
+ "https://providers.delta.chat/example-com" ,
154
154
) ;
155
155
expect ( info ?. status ) . to . equal ( 3 ) ;
156
156
} ) ;
@@ -167,12 +167,12 @@ async function waitForEvent<T extends DcEvent["kind"]>(
167
167
dc : DeltaChat ,
168
168
eventType : T ,
169
169
accountId : number ,
170
- timeout : number = EVENT_TIMEOUT
170
+ timeout : number = EVENT_TIMEOUT ,
171
171
) : Promise < Extract < DcEvent , { kind : T } > > {
172
172
return new Promise ( ( resolve , reject ) => {
173
173
const rejectTimeout = setTimeout (
174
174
( ) => reject ( new Error ( "Timeout reached before event came in" ) ) ,
175
- timeout
175
+ timeout ,
176
176
) ;
177
177
const callback = ( contextId : number , event : DcEvent ) => {
178
178
if ( contextId == accountId ) {
0 commit comments