Update test.

This commit is contained in:
Anders Starcke Henriksen
2023-04-17 15:38:10 +02:00
parent 42335c9947
commit cbf1f7b7a7

View File

@@ -157,6 +157,27 @@ describe("decodeBqrsToExternalApiUsages", () => {
// - Iterating over a map (as done by .values()) is guaranteed to be in insertion order // - Iterating over a map (as done by .values()) is guaranteed to be in insertion order
// - Sorting the array of usages is guaranteed to be a stable sort // - Sorting the array of usages is guaranteed to be a stable sort
expect(decodeBqrsToExternalApiUsages(chunk)).toEqual([ expect(decodeBqrsToExternalApiUsages(chunk)).toEqual([
{
signature:
"org.springframework.boot.SpringApplication#run(Class,String[])",
packageName: "org.springframework.boot",
typeName: "SpringApplication",
methodName: "run",
methodParameters: "(Class,String[])",
supported: false,
usages: [
{
label: "run(...)",
url: {
uri: "file:/home/runner/work/sql2o-example/sql2o-example/src/main/java/org/example/Sql2oExampleApplication.java",
startLine: 9,
startColumn: 9,
endLine: 9,
endColumn: 66,
},
},
],
},
{ {
signature: "org.sql2o.Connection#createQuery(String)", signature: "org.sql2o.Connection#createQuery(String)",
packageName: "org.sql2o", packageName: "org.sql2o",
@@ -267,27 +288,6 @@ describe("decodeBqrsToExternalApiUsages", () => {
}, },
], ],
}, },
{
signature:
"org.springframework.boot.SpringApplication#run(Class,String[])",
packageName: "org.springframework.boot",
typeName: "SpringApplication",
methodName: "run",
methodParameters: "(Class,String[])",
supported: false,
usages: [
{
label: "run(...)",
url: {
uri: "file:/home/runner/work/sql2o-example/sql2o-example/src/main/java/org/example/Sql2oExampleApplication.java",
startLine: 9,
startColumn: 9,
endLine: 9,
endColumn: 66,
},
},
],
},
{ {
signature: "org.sql2o.Sql2o#Sql2o(String,String,String)", signature: "org.sql2o.Sql2o#Sql2o(String,String,String)",
packageName: "org.sql2o", packageName: "org.sql2o",