Skip to content

Commit

Permalink
chore: update test to actually test the response body
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed Aug 29, 2024
1 parent 6ef8246 commit 7310d0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/manage_rest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe("making manage REST requests", () => {

assert.isNull(error);
assert.isNotNull(result);
// Add your assertions for the response data here
assert.containsAllDeepKeys(result, ["stt", "tts"]);
});

it("should retrieve a model", async () => {
Expand All @@ -245,6 +245,6 @@ describe("making manage REST requests", () => {

assert.isNull(error);
assert.isNotNull(result);
// Add your assertions for the response data here
assert.containsAllDeepKeys(result, ["name", "canonical_name"]);
});
});
2 changes: 2 additions & 0 deletions test/models_rest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ describe("making models REST requests", () => {

assert.isNull(error);
assert.isNotNull(result);
assert.containsAllDeepKeys(result, ["stt", "tts"]);
});

it("should retrieve a model", async () => {
const { result, error } = await deepgram.models.getModel(faker.string.uuid());

assert.isNull(error);
assert.isNotNull(result);
assert.containsAllDeepKeys(result, ["name", "canonical_name"]);
});
});

0 comments on commit 7310d0d

Please sign in to comment.