Skip to content

Commit

Permalink
style: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Dec 27, 2024
1 parent 3885381 commit f6edf44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/components/demo-vitest/__tests__/ExampleComponent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ describe('example Component', () => {
],
},
});
// @ts-expect-error clickCount is not in the component
expect(wrapper.vm.clickCount).toBe(0);
await wrapper.find('.q-item').trigger('click');
// @ts-expect-error clickCount is not in the component
expect(wrapper.vm.clickCount).toBe(1);
});

Expand Down
2 changes: 1 addition & 1 deletion src/types/github.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface Author {
}

export interface Release {
assets?: Asset[];
assets: Asset[];
assets_url?: string;
author?: Author;
body?: null | string;
Expand Down
4 changes: 2 additions & 2 deletions test/vitest/mocks/github.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Announcement, Release } from 'src/types';

export const releases: Release[] = [
{ prerelease: true, tag_name: 'v1.2.4-beta.0' },
{ prerelease: false, tag_name: 'v1.2.3' },
{ assets: [], prerelease: true, tag_name: 'v1.2.4-beta.0' },
{ assets: [], prerelease: false, tag_name: 'v1.2.3' },
];

export const announcements: Announcement[] = [
Expand Down

0 comments on commit f6edf44

Please sign in to comment.