@@ -9,11 +9,11 @@ import {
9
9
assertDiagnosticsEqual
10
10
} from './utils'
11
11
12
- const MAX_WAIT_TIME_FOR_UPDATE = 5000 // ms
13
- const MAX_WAIT_TIME_FOR_INITIAL_DIAGNOSTICS = 10000 // ms
12
+ const MAX_WAIT_TIME_FOR_UPDATE = 10000 // ms
13
+ const MAX_WAIT_TIME_FOR_INITIAL_DIAGNOSTICS = 15000 // ms
14
14
15
15
const docUri = getDocUri ( 'test.ts' )
16
- const diagnosticss = getExpectedDiagnosticss ( )
16
+ const diagnostics = getExpectedDiagnostics ( )
17
17
18
18
async function writeNewRule ( ) {
19
19
let vscodeuri = vscode . Uri . file (
@@ -69,7 +69,7 @@ suite('Should update when files change', () => {
69
69
try {
70
70
assertDiagnosticsEqual (
71
71
vscode . languages . getDiagnostics ( docUri ) ,
72
- diagnosticss [ 0 ]
72
+ diagnostics [ 0 ]
73
73
)
74
74
} catch ( e ) {
75
75
console . warn (
@@ -86,7 +86,7 @@ suite('Should update when files change', () => {
86
86
}
87
87
assertDiagnosticsEqual (
88
88
vscode . languages . getDiagnostics ( docUri ) ,
89
- diagnosticss [ 0 ]
89
+ diagnostics [ 0 ]
90
90
)
91
91
}
92
92
} )
@@ -95,15 +95,15 @@ suite('Should update when files change', () => {
95
95
await waitForDiagnosticChange ( MAX_WAIT_TIME_FOR_UPDATE )
96
96
assertDiagnosticsEqual (
97
97
vscode . languages . getDiagnostics ( docUri ) ,
98
- diagnosticss [ 1 ]
98
+ diagnostics [ 1 ]
99
99
)
100
100
} )
101
101
test ( 'Update on rule deletion' , async ( ) => {
102
102
deleteNewRule ( )
103
103
await waitForDiagnosticChange ( MAX_WAIT_TIME_FOR_UPDATE )
104
104
assertDiagnosticsEqual (
105
105
vscode . languages . getDiagnostics ( docUri ) ,
106
- diagnosticss [ 2 ]
106
+ diagnostics [ 2 ]
107
107
)
108
108
} )
109
109
test ( 'Update on ruleDirs change to nonexistent path' , async ( ) => {
@@ -116,7 +116,7 @@ suite('Should update when files change', () => {
116
116
await waitForDiagnosticChange ( MAX_WAIT_TIME_FOR_UPDATE )
117
117
assertDiagnosticsEqual (
118
118
vscode . languages . getDiagnostics ( docUri ) ,
119
- diagnosticss [ 0 ]
119
+ diagnostics [ 0 ]
120
120
)
121
121
} )
122
122
} )
@@ -127,7 +127,7 @@ function toRange(sLine: number, sChar: number, eLine: number, eChar: number) {
127
127
return new vscode . Range ( start , end )
128
128
}
129
129
130
- function getExpectedDiagnosticss ( ) {
130
+ function getExpectedDiagnostics ( ) {
131
131
const full = [
132
132
{
133
133
message : 'No Math.random' ,
0 commit comments