Skip to content

Commit

Permalink
Add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosrealm committed Jul 12, 2024
1 parent 7d05587 commit 6d344af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cortex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ test("can configure, get, and delete and Cortexes", async () => {
overrides: {
companyInfo: "a very good company that does AI stuff",
companyName: "Cortex Click, Inc. --test",
inheritRules: false,
},
};

let cortex = await testClient.configureCortex(cortexName, cortexConfig);

cortex = await testClient.getCortex(cortexName);
expect(cortex.config.catalogs).toStrictEqual(cortexConfig.catalogs);
expect(cortex.config.overrides?.inheritRules).toBe(true); // test input doesn't specify `inheritRules`, should be true by default
// TODO - check all the properties

// delete the cortex
await cortex.delete();
// assert that the get failes
// assert that the get fails
await expect(async () => {
await testClient.getCortex(cortexName);
}).rejects.toThrowError("Failed to get cortex: Not Found");
Expand Down

0 comments on commit 6d344af

Please sign in to comment.