Skip to content

Commit 92c130f

Browse files
committed
test: fix lint errors
1 parent 129d0d7 commit 92c130f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/declaration-type-guards.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test("isVariableAssignmentExpression", () => {
6262
);
6363
expect(isVariableAssignmentExpression(indexFile.getFunctionOrThrow("foo"))).toBe(false);
6464
expect(
65-
isVariableAssignmentExpression(indexFile.getExportedDeclarations().get("default")?.at(0)!),
65+
isVariableAssignmentExpression(indexFile.getExportedDeclarations().get("default")!.at(0)!),
6666
).toBe(true);
6767
});
6868

@@ -85,7 +85,7 @@ test("isExpression", () => {
8585
`,
8686
);
8787
expect(isExpression(indexFile.getFunctionOrThrow("foo"))).toBe(false);
88-
expect(isExpression(indexFile.getExportedDeclarations().get("default")?.at(0)!)).toBe(true);
88+
expect(isExpression(indexFile.getExportedDeclarations().get("default")!.at(0)!)).toBe(true);
8989
});
9090

9191
test("isFunction", () => {

src/docs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test("docs", () => {
5555
expect(docs(indexFile.getVariableDeclarationOrThrow("bar"))).toStrictEqual([
5656
"/** Docs for bar */",
5757
]);
58-
expect(docs(indexFile.getExportedDeclarations().get("default")?.at(0)!)).toStrictEqual([
58+
expect(docs(indexFile.getExportedDeclarations().get("default")!.at(0)!)).toStrictEqual([
5959
"/** Docs for expression */",
6060
]);
6161
expect(docs(indexFile.getFunctionOrThrow("fooFunc"))).toStrictEqual([

0 commit comments

Comments
 (0)