Update the test

This commit is contained in:
Rusty Scrivens
2019-02-20 15:30:16 -08:00
parent 6e696788b5
commit a3c324e8f7
+5 -3
View File
@@ -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");
}