From 65c71b812eaa4432586be0d8e77849278c0aa909 Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 17 Feb 2021 15:11:51 -0500 Subject: [PATCH] Mount with contexts now that i18n is used on workflow start node --- .../src/components/Workflow/WorkflowStartNode.test.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui_next/src/components/Workflow/WorkflowStartNode.test.jsx b/awx/ui_next/src/components/Workflow/WorkflowStartNode.test.jsx index 5f5284e176..78cf3756dc 100644 --- a/awx/ui_next/src/components/Workflow/WorkflowStartNode.test.jsx +++ b/awx/ui_next/src/components/Workflow/WorkflowStartNode.test.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import { mount } from 'enzyme'; +import { mountWithContexts } from '../../../testUtils/enzymeHelpers'; import { WorkflowStateContext } from '../../contexts/Workflow'; import WorkflowStartNode from './WorkflowStartNode'; @@ -12,7 +12,7 @@ const nodePositions = { describe('WorkflowStartNode', () => { test('mounts successfully', () => { - const wrapper = mount( + const wrapper = mountWithContexts( { expect(wrapper).toHaveLength(1); }); test('tooltip shown on hover', () => { - const wrapper = mount( + const wrapper = mountWithContexts(