Skip to content

Commit 43bc2aa

Browse files
test: update locales test case to include assertions
1 parent 38e9def commit 43bc2aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/api/term.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ describe("Terms API test cases", () => {
1515
});
1616

1717
it("should get locales for a term", async () => {
18-
// const result = await makeTerms("vehicles").locales().fetch();
19-
// API under building phase, so it should throw error
20-
expect(async () => await makeTerms("vehicles").locales()).rejects.toThrow();
21-
// TODO: add assertions
18+
const result = await makeTerms("vehicles").locales<TTerms>();
19+
expect(result).toBeDefined();
20+
expect(result.terms).toBeDefined();
21+
expect(result.terms[0].name).toBeDefined();
2222
});
2323

2424
it("should get ancestors for a term", async () => {

0 commit comments

Comments
 (0)