summaryrefslogtreecommitdiff
path: root/spec/frontend/jobs/bridge/components/empty_state_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/jobs/bridge/components/empty_state_spec.js')
-rw-r--r--spec/frontend/jobs/bridge/components/empty_state_spec.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/jobs/bridge/components/empty_state_spec.js b/spec/frontend/jobs/bridge/components/empty_state_spec.js
index 83642450118..38c55b296f0 100644
--- a/spec/frontend/jobs/bridge/components/empty_state_spec.js
+++ b/spec/frontend/jobs/bridge/components/empty_state_spec.js
@@ -6,14 +6,13 @@ import { MOCK_EMPTY_ILLUSTRATION_PATH, MOCK_PATH_TO_DOWNSTREAM } from '../mock_d
describe('Bridge Empty State', () => {
let wrapper;
- const createComponent = (props) => {
+ const createComponent = ({ downstreamPipelinePath }) => {
wrapper = shallowMount(BridgeEmptyState, {
provide: {
emptyStateIllustrationPath: MOCK_EMPTY_ILLUSTRATION_PATH,
},
propsData: {
- downstreamPipelinePath: MOCK_PATH_TO_DOWNSTREAM,
- ...props,
+ downstreamPipelinePath,
},
});
};
@@ -28,7 +27,7 @@ describe('Bridge Empty State', () => {
describe('template', () => {
beforeEach(() => {
- createComponent();
+ createComponent({ downstreamPipelinePath: MOCK_PATH_TO_DOWNSTREAM });
});
it('renders illustration', () => {