Skip to content

Commit

Permalink
fix: clear test
Browse files Browse the repository at this point in the history
  • Loading branch information
acnormun committed Dec 6, 2024
1 parent 1998f1c commit 4c05c4d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/components/flow/actions/openticket/OpenTicket.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,12 @@ describe('OpenTicketComp', () => {

it('should display ticketer name if brand is not present in ticketer name', () => {
const baseProps = {
context: {
config: {
brand: 'MyBrand',
},
},
ticketer: { name: 'Another Brand Support', uuid: '1234' },
body: 'This is the body',
result_name: 'Result Name',
type: Types.open_ticket,
uuid: '5678',
context: mockContext,
};

const { setup } = composeComponentTestUtils(OpenTicketComp, baseProps);
Expand All @@ -66,16 +62,12 @@ describe('OpenTicketComp', () => {

it('should not display ticketer name if brand is in ticketer name', () => {
const baseProps = {
context: {
config: {
brand: 'MyBrand',
},
},
ticketer: { name: 'RapidPro MyBrand', uuid: '1234' },
body: 'This is the body',
result_name: 'Result Name',
type: Types.open_ticket,
uuid: '5678',
context: mockContext,
};

const { setup } = composeComponentTestUtils(OpenTicketComp, baseProps);
Expand Down

0 comments on commit 4c05c4d

Please sign in to comment.