mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Update the test
This commit is contained in:
@@ -4,8 +4,10 @@ const input = `{
|
||||
"runs": [
|
||||
{
|
||||
"tool": {
|
||||
"name": "CodeScanner",
|
||||
"semanticVersion": "2.1.0"
|
||||
"driver": {
|
||||
"name": "CodeScanner",
|
||||
"semanticVersion": "2.1.0"
|
||||
},
|
||||
},
|
||||
"results": [
|
||||
]
|
||||
@@ -13,6 +15,6 @@ const input = `{
|
||||
]
|
||||
}`;
|
||||
const log = JSON.parse("") as sarif.Log;
|
||||
if (log.runs[0].tool.name !== "CodeScanner") {
|
||||
if (log.runs[0].tool.driver.name !== "CodeScanner") {
|
||||
throw new Error("error: Tool name does not match");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user