diff --git a/src/resources/HostedInterfacesCore/HostedInterfaceCoreConfig.model.ts b/src/resources/HostedInterfacesCore/HostedInterfaceCoreConfig.model.ts index 5ea093a36..fab12259e 100644 --- a/src/resources/HostedInterfacesCore/HostedInterfaceCoreConfig.model.ts +++ b/src/resources/HostedInterfacesCore/HostedInterfaceCoreConfig.model.ts @@ -17,7 +17,7 @@ export interface HostedInterfaceResultTemplateBadge { color: string; } -export enum HostedInferfaceConditionOperator { +export enum HostedInterfaceConditionOperator { IsDefined = 'isDefined', IsNotDefined = 'isNotDefined', MustMatch = 'mustMatch', @@ -45,7 +45,7 @@ export interface HostedInterfaceCondition { * - `'mustMatch'` * - `'mustNotMatch'` */ - conditionType: HostedInferfaceConditionOperator; + conditionType: HostedInterfaceConditionOperator; } export interface HostedInterfaceResultTemplateDetail { diff --git a/src/resources/InsightPanelInterfaces/tests/InsightPanelInterface.spec.ts b/src/resources/InsightPanelInterfaces/tests/InsightPanelInterface.spec.ts index 820b5c2c8..08aeff6da 100644 --- a/src/resources/InsightPanelInterfaces/tests/InsightPanelInterface.spec.ts +++ b/src/resources/InsightPanelInterfaces/tests/InsightPanelInterface.spec.ts @@ -1,6 +1,6 @@ import API from '../../../APICore.js'; import {New} from '../../../Entry.js'; -import {HostedInferfaceConditionOperator} from '../../HostedInterfacesCore/index.js'; +import {HostedInterfaceConditionOperator} from '../../HostedInterfacesCore/index.js'; import InsightPanelInterface from '../InsightPanelInterface.js'; import {InsightPanelInterfaceConfiguration, InsightPanelResultTemplateLayout} from '../InsightPanelInterface.model.js'; jest.mock('../../../APICore.js'); @@ -32,12 +32,12 @@ describe('InsightPanelInterface', () => { layout: InsightPanelResultTemplateLayout.Default, conditions: [ { - conditionType: HostedInferfaceConditionOperator.MustMatch, + conditionType: HostedInterfaceConditionOperator.MustMatch, field: 'sourcetype', values: ['youtube'], }, { - conditionType: HostedInferfaceConditionOperator.IsDefined, + conditionType: HostedInterfaceConditionOperator.IsDefined, field: 'ytlikecount', }, ], @@ -74,7 +74,7 @@ describe('InsightPanelInterface', () => { conditions: [ { field: '@sfkbid', - conditionType: HostedInferfaceConditionOperator.IsDefined, + conditionType: HostedInterfaceConditionOperator.IsDefined, }, ], },