Skip to content

Commit 1f61f73

Browse files
committed
fix: "object is possibly 'null'.ts(2531)" in codeaction test
1 parent e7c26b4 commit 1f61f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/adapters/code-action-adapter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ describe("CodeActionAdapter", () => {
7575
},
7676
])
7777

78-
expect(actions.length).to.equal(1)
79-
const codeAction = actions[0]
78+
expect((actions as any).length).to.equal(1)
79+
const codeAction = (actions as any)[0]
8080
expect(await codeAction.getTitle()).to.equal("Test Command")
8181
await codeAction.apply()
8282
expect((languageClient as any).executeCommand.called).to.be.true

0 commit comments

Comments
 (0)