Skip to content

Commit

Permalink
uni
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Aug 8, 2024
1 parent dd8a292 commit 88fbcb5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions js/src/tests/client.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,23 +914,26 @@ test("Test delete prompt", async () => {

test("test listing projects by metadata", async () => {
const client = new Client();
const uid = uuidv4();
const projectName = `my_metadata_project_${uid}`;

await client.createProject({
projectName: "my_metadata_project",
projectName: projectName,
metadata: {
foobar: "bar",
foobar: uid,
baz: "barfooqux",
},
});

const projects = await client.listProjects({ metadata: { foobar: "bar" } });
const projects = await client.listProjects({ metadata: { foobar: uid } });

let myProject: TracerSession | null = null;
for await (const project of projects) {
myProject = project;
}
expect(myProject?.name).toEqual("my_metadata_project");
expect(myProject?.name).toEqual(projectName);

await client.deleteProject({ projectName: "my_metadata_project" });
await client.deleteProject({ projectName: projectName });
});

test("Test create commit", async () => {
Expand Down

0 comments on commit 88fbcb5

Please sign in to comment.