Skip to content

Commit 5cba775

Browse files
committed
Update some tests for driver v6
1 parent a9b1f93 commit 5cba775

File tree

4 files changed

+1348
-861
lines changed

4 files changed

+1348
-861
lines changed

packages/graphql/tests/integration/array-methods/array-push.int.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,20 @@ describe("array-push", () => {
110110
{
111111
description: "a single Duration element",
112112
inputType: "Duration",
113-
inputValue: `"P2M0DT10S"`,
114-
expectedOutputValue: ["P2M0DT10S"],
113+
inputValue: `"P2MT10S"`,
114+
expectedOutputValue: ["P2MT10S"],
115115
},
116116
{
117117
description: "a single Duration element in an array",
118118
inputType: "Duration",
119-
inputValue: `["P2M0DT10S"]`,
120-
expectedOutputValue: ["P2M0DT10S"],
119+
inputValue: `["P2MT10S"]`,
120+
expectedOutputValue: ["P2MT10S"],
121121
},
122122
{
123123
description: "multiple Duration elements",
124124
inputType: "Duration",
125-
inputValue: `["P2M0DT10S", "P2M0DT10S"]`,
126-
expectedOutputValue: ["P2M0DT10S", "P2M0DT10S"],
125+
inputValue: `["P2MT10S", "P2MT10S"]`,
126+
expectedOutputValue: ["P2MT10S", "P2MT10S"],
127127
},
128128
{
129129
description: "a single Date element",

packages/graphql/tests/integration/directives/populatedBy/populatedBy-node-properties.int.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,7 @@ describe("@populatedBy directive - Node properties", () => {
21852185
test("Should use on CREATE", async () => {
21862186
const testMovie = testHelper.createUniqueType("Movie");
21872187

2188-
const duration = `P14M3DT14700S`;
2188+
const duration = `P1Y2M3DT4H5M`;
21892189

21902190
const callback = () => Promise.resolve(duration);
21912191

@@ -2238,7 +2238,7 @@ describe("@populatedBy directive - Node properties", () => {
22382238
test("Should use on UPDATE", async () => {
22392239
const testMovie = testHelper.createUniqueType("Movie");
22402240

2241-
const duration = `P14M3DT14700S`;
2241+
const duration = `P1Y2M3DT4H5M`;
22422242

22432243
const callback = () => Promise.resolve(duration);
22442244

packages/graphql/tests/integration/directives/populatedBy/populatedBy-relationship-properties.int.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,8 +2458,8 @@ describe("@populatedBy directive - Relationship properties", () => {
24582458
{
24592459
description: "@populatedBy - Duration",
24602460
type: "Duration",
2461-
callback: () => Promise.resolve(`P14M3DT14700S`),
2462-
expectedValue: `P14M3DT14700S`,
2461+
callback: () => Promise.resolve(`P1Y2M3DT4H5M`),
2462+
expectedValue: `P1Y2M3DT4H5M`,
24632463
},
24642464
])("$description", ({ type, callback, expectedValue, expectedValueTemp }) => {
24652465
test("Should use on CREATE", async () => {

0 commit comments

Comments
 (0)