Skip to content

Commit 9b0328c

Browse files
committed
Fix test coverage
1 parent e0626c4 commit 9b0328c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/vulnerabilities/sql-injection/detectSQLInjection.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,11 @@ function isNotSqlInjection(
361361
);
362362
}
363363
}
364+
365+
t.test("get human readable name", async () => {
366+
t.same(new SQLDialectGeneric().getHumanReadableName(), "Generic");
367+
t.same(new SQLDialectMySQL().getHumanReadableName(), "MySQL");
368+
t.same(new SQLDialectPostgres().getHumanReadableName(), "PostgreSQL");
369+
t.same(new SQLDialectSQLite().getHumanReadableName(), "SQLite");
370+
t.same(new SQLDialectClickHouse().getHumanReadableName(), "ClickHouse");
371+
});

0 commit comments

Comments
 (0)