Skip to content

Commit

Permalink
style(types): fixes ts linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Jul 18, 2022
1 parent 1626a92 commit dd65b9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/lyra/tests/lyra.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("checkInsertDocSchema", () => {
).toBeDefined();

try {
// @ts-expect-error
// @ts-expect-error test error case
await db.insert({ quote: "hello, world!", author: true });
} catch (err) {
expect(err).toMatchSnapshot();
Expand All @@ -70,15 +70,15 @@ describe("checkInsertDocSchema", () => {
try {
await db.insert({
quote: "hello, world!",
// @ts-expect-error
// @ts-expect-error test error case
authors: "author should be singular",
});
} catch (err) {
expect(err).toMatchSnapshot();
}

try {
// @ts-expect-error
// @ts-expect-error test error case
await db.insert({ quote: "hello, world!", foo: { bar: 10 } });
} catch (err) {
expect(err).toMatchSnapshot();
Expand Down Expand Up @@ -145,7 +145,7 @@ describe("lyra", () => {
try {
await db.search({
term: "foo",
//@ts-expect-error
//@ts-expect-error test error case
properties: ["bar"],
});
} catch (err) {
Expand Down

0 comments on commit dd65b9e

Please sign in to comment.