Skip to content

Commit

Permalink
fix: various ts issues (#145)
Browse files Browse the repository at this point in the history
(cherry picked from commit 106b59c)
  • Loading branch information
Claiyc committed May 3, 2023
1 parent 2cc270f commit 6c21f55
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/components/ViewComponent/ViewComponent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import ViewComponent from '@/components/ViewComponent/ViewComponent.vue';
describe('ViewComponent', () => {
it('Render title prop', () => {
const title = 'Test Title'
const wrapper = shallowMount(ViewComponent, {
props:
{
const wrapper = shallowMount((ViewComponent as any), {
props:
{
title: title,
loading: false,
}
Expand All @@ -16,14 +16,14 @@ describe('ViewComponent', () => {
})

it('Render default slot content', () => {
const wrapper = shallowMount(ViewComponent, {
const wrapper = shallowMount((ViewComponent as any), {
slots: { default: '<div class="my-slot-content"></div>' }
})
expect(wrapper.find('.my-slot-content').exists()).toBe(true)
})

it('Render action slot content', () => {
const wrapper = shallowMount(ViewComponent, {
const wrapper = shallowMount((ViewComponent as any), {
slots: { actions: '<div class="my-actions-content"></div>' }
})
expect(wrapper.find('.my-actions-content').exists()).toBe(true)
Expand Down
2 changes: 1 addition & 1 deletion src/proc/regex/RegexHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ConstraintRegex } from "./ConstraintRegex";
import { Slicing } from "./Regex";
import { ValueRegex } from "./ValueRegex";
import { StringSimilarity } from "../stringSimilarity";
import { StringSimilarity } from "../StringSimilarity";

export class RegexHandler {
private static instance: RegexHandler;
Expand Down
8 changes: 4 additions & 4 deletions src/views/SourcesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
>
<v-card
v-for="(source, index) in onlyScreenSources"
:key="source.id"
:key="(source as any).id"
@click="
streamHandler.setCurrentSelectedSource(
streams[index]
)
"
class="mb-2"
>
<v-card-title>{{ source.name }}</v-card-title>
<v-card-title>{{ (source as any).name }}</v-card-title>
<v-card-text>
<video
autoplay
Expand All @@ -55,15 +55,15 @@
v-for="(
source, index
) in onlyApplicationSources"
:key="source.id"
:key="(source as any).id"
@click="
streamHandler.setCurrentSelectedSource(
streams[lastScreenIndex + index]
)
"
class="mb-2"
>
<v-card-title>{{ source.name }}</v-card-title>
<v-card-title>{{ (source as any).name }}</v-card-title>
<v-card-text>
<video
autoplay
Expand Down

0 comments on commit 6c21f55

Please sign in to comment.