Skip to content

Commit

Permalink
changed date result format (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed May 28, 2024
1 parent 4911cfb commit 00ac359
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("DuneClient Extensions", () => {
});
expect(results.result?.rows).to.be.deep.equal([
{
date_field: "2022-05-04 00:00:00.000",
date_field: "2022-05-04 00:00:00",
list_field: "Option 1",
number_field: "3.1415926535",
text_field: "Plain Text",
Expand Down Expand Up @@ -64,7 +64,7 @@ describe("DuneClient Extensions", () => {
expect(results.data).to.be.equal(
[
"text_field,number_field,date_field,list_field\n",
"Plain Text,3.1415926535,2022-05-04 00:00:00.000,Option 1\n",
"Plain Text,3.1415926535,2022-05-04 00:00:00,Option 1\n",
].join(""),
);

Expand Down
10 changes: 5 additions & 5 deletions tests/e2e/execution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ describe("ExecutionAPI: native routes", () => {
});
expect(results.result?.rows).to.be.deep.equal([
{
date_field: "2022-05-04 00:00:00.000",
date_field: "2022-05-04 00:00:00",
list_field: "Option 1",
number_field: "3.1415926535",
text_field: "Plain Text",
Expand All @@ -183,15 +183,15 @@ describe("ExecutionAPI: native routes", () => {
});
const expectedRows = [
"text_field,number_field,date_field,list_field\n",
"Plain Text,3.1415926535,2022-05-04 00:00:00.000,Option 1\n",
"Plain Text,3.1415926535,2022-05-04 00:00:00,Option 1\n",
];
expect(resultCSV.data).to.be.eq(expectedRows.join(""));
});

/// Pagination
it("uses pagination parameters", async () => {
// This execution was run with StartFrom = 1.
const result = await client.getExecutionResults("01HQJ996M17AB1D7EWDMPZ79ZS", {
// This execution was run with StartFrom = 1 on queryId = 3463180.
const result = await client.getExecutionResults("01HZ0KTJEC24251CM5SN8FFR26", {
limit: 2,
offset: 1,
});
Expand All @@ -204,7 +204,7 @@ describe("ExecutionAPI: native routes", () => {
},
]);

const resultCSV = await client.getResultCSV("01HQJ996M17AB1D7EWDMPZ79ZS", {
const resultCSV = await client.getResultCSV("01HZ0KTJEC24251CM5SN8FFR26", {
limit: 1,
offset: 2,
});
Expand Down

0 comments on commit 00ac359

Please sign in to comment.