Skip to content

Commit e64897d

Browse files
committed
chore: lint fix [skip ci]
1 parent 26df5cc commit e64897d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

test/filter-tree-spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe("filterTree", () => {
8989
// answers are os dependant because of slight differences
9090
// console.log(filterTree(outlineData, "text", "plainText", "children"))
9191
it("can search in outline data", () => {
92-
process.platform === "win32" &&
92+
if (process.platform === "win32") {
9393
expect(
9494
DeepEqual(filterTree(outlineData, "text", "plainText", "children"), [
9595
{ data: "text", index: 0, level: 4 },
@@ -189,9 +189,10 @@ describe("filterTree", () => {
189189
{ data: "updateMaxScreenLineLength", index: 29, level: 2 },
190190
])
191191
).toBe(true)
192+
}
192193

193194
// console.log(filterTree(outlineData, "disp", "plainText", "children"))
194-
process.platform !== "linux" &&
195+
if (process.platform !== "linux") {
195196
expect(
196197
DeepEqual(filterTree(outlineData, "disp", "plainText", "children"), [
197198
{ data: "disposable", index: 3, level: 4 },
@@ -218,9 +219,10 @@ describe("filterTree", () => {
218219
{ data: "onDidChangeCursorPosition", index: 58, level: 2 },
219220
])
220221
).toBe(true)
222+
}
221223

222224
// console.log(filterTree(outlineData, "dips", "plainText", "children"))
223-
process.platform !== "linux" &&
225+
if (process.platform !== "linux") {
224226
expect(
225227
DeepEqual(filterTree(outlineData, "dips", "plainText", "children"), [
226228
{ data: "didUpdateStyles", index: 2, level: 3 },
@@ -257,5 +259,6 @@ describe("filterTree", () => {
257259
{ data: "destroyFoldsContainingBufferPositions", index: 373, level: 2 },
258260
])
259261
).toBe(true)
262+
}
260263
})
261264
})

test/tree-filterer-spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("TreeFilterer", function () {
3535
treeFilterer.setCandidates(outlineData, "plainText", "children")
3636

3737
// console.log(treeFilterer.filter("text"))
38-
process.platform === "win32" &&
38+
if (process.platform === "win32") {
3939
expect(
4040
DeepEqual(treeFilterer.filter("text"), [
4141
{ data: "text", index: 0, level: 4 },
@@ -135,9 +135,10 @@ describe("TreeFilterer", function () {
135135
{ data: "updateMaxScreenLineLength", index: 29, level: 2 },
136136
])
137137
).toBe(true)
138+
}
138139

139140
// console.log(treeFilterer.filter("disp"))
140-
process.platform !== "linux" &&
141+
if (process.platform !== "linux") {
141142
expect(
142143
DeepEqual(treeFilterer.filter("disp"), [
143144
{ data: "disposable", index: 3, level: 4 },
@@ -164,9 +165,10 @@ describe("TreeFilterer", function () {
164165
{ data: "onDidChangeCursorPosition", index: 58, level: 2 },
165166
])
166167
).toBe(true)
168+
}
167169

168170
// console.log(treeFilterer.filter("dips"))
169-
process.platform !== "linux" &&
171+
if (process.platform !== "linux") {
170172
expect(
171173
DeepEqual(treeFilterer.filter("dips"), [
172174
{ data: "didUpdateStyles", index: 2, level: 3 },
@@ -203,5 +205,6 @@ describe("TreeFilterer", function () {
203205
{ data: "destroyFoldsContainingBufferPositions", index: 373, level: 2 },
204206
])
205207
).toBe(true)
208+
}
206209
})
207210
})

0 commit comments

Comments
 (0)