Skip to content

Commit

Permalink
fix: fix test code
Browse files Browse the repository at this point in the history
  • Loading branch information
yamatatsu committed Dec 1, 2022
1 parent 9db816d commit 9f7ad39
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ test("parse to json following ColumnInfo", async () => {
],
},
Rows: [
{
// header row
Data: [
{ VarCharValue: "name" },
{ VarCharValue: "disabled" },
{ VarCharValue: "timestamp" },
{ VarCharValue: "score1" },
{ VarCharValue: "score2" },
{ VarCharValue: "score3" },
{ VarCharValue: "score4" },
{ VarCharValue: "rate1" },
{ VarCharValue: "rate2" },
],
},
{
Data: [
{ VarCharValue: "test-name-1" },
Expand Down Expand Up @@ -90,7 +104,10 @@ test("wait query completed", async () => {
ResultSetMetadata: {
ColumnInfo: [{ Name: "name", Type: "varchar" }],
},
Rows: [{ Data: [{ VarCharValue: "test-name-1" }] }],
Rows: [
{ Data: [{ VarCharValue: "test-name-1" }] }, // header row
{ Data: [{ VarCharValue: "test-name-1" }] },
],
},
});

Expand All @@ -116,6 +133,7 @@ test("get items with generator", async () => {
ColumnInfo: [{ Name: "name", Type: "varchar" }],
},
Rows: [
{ Data: [{ VarCharValue: "name" }] }, // header row
{ Data: [{ VarCharValue: "test-name-1" }] },
{ Data: [{ VarCharValue: "test-name-2" }] },
],
Expand Down Expand Up @@ -163,6 +181,7 @@ test("get all item with generator", async () => {
ColumnInfo: [{ Name: "name", Type: "varchar" }],
},
Rows: [
{ Data: [{ VarCharValue: "name" }] }, // header row
{ Data: [{ VarCharValue: "test-name-1" }] },
{ Data: [{ VarCharValue: "test-name-2" }] },
],
Expand Down

0 comments on commit 9f7ad39

Please sign in to comment.