Skip to content

Commit 521b015

Browse files
Copilotbenbalter
andcommitted
Fix failing tests by updating field type case to lowercase
Co-authored-by: benbalter <[email protected]>
1 parent ce66290 commit 521b015

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

__test__/main.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ test("valueGraphqlType returns String for text", () => {
2828
});
2929

3030
test("convertValueToFieldType converts string to number for number field", () => {
31-
const result = updateProject.convertValueToFieldType("42", "NUMBER");
31+
const result = updateProject.convertValueToFieldType("42", "number");
3232
expect(result).toBe(42);
3333
});
3434

3535
test("convertValueToFieldType converts string to float for number field", () => {
36-
const result = updateProject.convertValueToFieldType("3.14", "NUMBER");
36+
const result = updateProject.convertValueToFieldType("3.14", "number");
3737
expect(result).toBe(3.14);
3838
});
3939

4040
test("convertValueToFieldType converts zero string to number for number field", () => {
41-
const result = updateProject.convertValueToFieldType("0", "NUMBER");
41+
const result = updateProject.convertValueToFieldType("0", "number");
4242
expect(result).toBe(0);
4343
});
4444

4545
test("convertValueToFieldType throws error for invalid number", () => {
4646
expect(() => {
47-
updateProject.convertValueToFieldType("not-a-number", "NUMBER");
47+
updateProject.convertValueToFieldType("not-a-number", "number");
4848
}).toThrow("Invalid number value: not-a-number");
4949
});
5050

0 commit comments

Comments
 (0)