Skip to content

Commit 2c6e007

Browse files
committed
fix: modify test to use a mock app object instead of express
1 parent 91c1e89 commit 2c6e007

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/analyzers/ExpressFrameworkAnalyzer.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ describe("ExpressFrameworkAnalyzer", () => {
7070
const sourceFile = project.createSourceFile(
7171
"test.ts",
7272
`
73-
import express from "express"
74-
const app = express()
73+
const app = {get: () => {}}
7574
app.get("/", (req, res) => {})`,
7675
);
7776
const node = sourceFile

0 commit comments

Comments
 (0)