Skip to content

Commit

Permalink
fix: typo in HostedInterfaceConditionOperator (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguerinCoveo authored and louis-bompart committed Jan 12, 2023
1 parent 3f20217 commit c12341e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface HostedInterfaceResultTemplateBadge {
color: string;
}

export enum HostedInferfaceConditionOperator {
export enum HostedInterfaceConditionOperator {
IsDefined = 'isDefined',
IsNotDefined = 'isNotDefined',
MustMatch = 'mustMatch',
Expand Down Expand Up @@ -45,7 +45,7 @@ export interface HostedInterfaceCondition {
* - `'mustMatch'`
* - `'mustNotMatch'`
*/
conditionType: HostedInferfaceConditionOperator;
conditionType: HostedInterfaceConditionOperator;
}

export interface HostedInterfaceResultTemplateDetail {
Expand Down
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -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',
},
],
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('InsightPanelInterface', () => {
conditions: [
{
field: '@sfkbid',
conditionType: HostedInferfaceConditionOperator.IsDefined,
conditionType: HostedInterfaceConditionOperator.IsDefined,
},
],
},
Expand Down

0 comments on commit c12341e

Please sign in to comment.