From 6d344aff1b78ce74b8f5c3346c065206be09b44c Mon Sep 17 00:00:00 2001 From: chaosrealm Date: Fri, 12 Jul 2024 16:45:10 -0700 Subject: [PATCH] Add test coverage --- cortex.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cortex.test.ts b/cortex.test.ts index 48b6782..adea585 100644 --- a/cortex.test.ts +++ b/cortex.test.ts @@ -48,7 +48,6 @@ 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, }, }; @@ -56,11 +55,12 @@ test("can configure, get, and delete and Cortexes", async () => { 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");