Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh-dixit committed Aug 20, 2024
1 parent def7b3f commit c6bdb13
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/src/sdk/base.toolset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ describe("ComposioToolSet class tests", () => {
expect(tools).not.toHaveLength(0);
});

it("should create a ComposioToolSet instance", async () => {
it("should create a ComposioToolSet instance with apps and tags", async () => {
const tools = await toolset.getToolsSchema({ apps: ["github"], tags: ["important"] });
expect(tools).toBeInstanceOf(Array);
expect(tools).not.toHaveLength(0);
});

it("should create a ComposioToolSet instance", async () => {
it("should create a ComposioToolSet instance with actions", async () => {
const tools = await toolset.getActionsSchema({ actions: ["github_issues_create"] });
expect(tools).toBeInstanceOf(Array);
});
Expand Down
4 changes: 2 additions & 2 deletions js/src/sdk/models/actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ describe("Apps class tests", () => {
}
});

expect(executionResult).toHaveProperty('execution_details.executed', true);
expect(executionResult).toHaveProperty('response_data.authorizations_url');
expect(executionResult).toHaveProperty('successfull', true);
expect((executionResult as any).data).toHaveProperty('authorizations_url');
});

it("should execute an action of noauth app", async () => {
Expand Down
2 changes: 1 addition & 1 deletion js/src/sdk/models/apps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("Apps class tests", () => {
// @ts-ignore
expect(app.auth_schemes[0]).toHaveProperty('auth_mode', 'OAUTH2');
expect(app).toHaveProperty('key', appKey);
expect(app).toHaveProperty('name', 'Github');
expect(app).toHaveProperty('name', 'github');
expect(app).toHaveProperty('description');
});

Expand Down

0 comments on commit c6bdb13

Please sign in to comment.