Skip to content

Commit

Permalink
Make Todo.points a long for testing purposes (revert later)
Browse files Browse the repository at this point in the history
The test should pass with or without this commit but they only pass with...
  • Loading branch information
bryantpark04 committed Jul 24, 2024
1 parent d2419ac commit f7ab49a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/legacy-client/src/util/test/TodoObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type {
OntologyObject,
SingleLink,
} from "../../client/baseTypes/index.js";
import type { StringLong } from "../../client/index.js";
import type { Task } from "./TaskObject.js";

/**
Expand All @@ -39,7 +40,7 @@ export interface Todo extends OntologyObject {
readonly class: string | undefined;
readonly class_: string | undefined;
readonly complete: boolean | undefined;
readonly points: number | undefined;
readonly points: StringLong | undefined;
readonly tags: string[] | undefined;
readonly linkedTask: SingleLink<Task>;
}
4 changes: 2 additions & 2 deletions packages/shared.test/src/mock-ontology/mockOntology.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Todo: TodoDef = {
class: { type: "string", nullable: true },
complete: { type: "boolean", nullable: true },
tags: { type: "string", multiplicity: true, nullable: true },
points: { type: "integer", nullable: true },
points: { type: "long", nullable: true },
},
links: {
linkedTask: {
Expand All @@ -82,7 +82,7 @@ interface TodoDef extends ObjectTypeDefinition<"Todo">, VersionBound<"0.15.0"> {
class: { type: "string"; nullable: true };
complete: { type: "boolean"; nullable: true };
tags: { type: "string"; multiplicity: true; nullable: true };
points: { type: "integer"; nullable: true };
points: { type: "long"; nullable: true };
};
links: {
linkedTask: ObjectTypeLinkDefinition<TaskDef, false>;
Expand Down

0 comments on commit f7ab49a

Please sign in to comment.