summaryrefslogtreecommitdiff
path: root/spec/frontend/issuable/components/csv_export_modal_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/issuable/components/csv_export_modal_spec.js')
-rw-r--r--spec/frontend/issuable/components/csv_export_modal_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/issuable/components/csv_export_modal_spec.js b/spec/frontend/issuable/components/csv_export_modal_spec.js
index f46b6f72f05..a327da2d63a 100644
--- a/spec/frontend/issuable/components/csv_export_modal_spec.js
+++ b/spec/frontend/issuable/components/csv_export_modal_spec.js
@@ -58,14 +58,14 @@ describe('CsvExportModal', () => {
describe('issuable count info text', () => {
it('displays the info text when issuableCount is > -1', () => {
- wrapper = createComponent({ injectedProperties: { issuableCount: 10 } });
+ wrapper = createComponent({ props: { issuableCount: 10 } });
expect(wrapper.findByTestId('issuable-count-note').exists()).toBe(true);
expect(wrapper.findByTestId('issuable-count-note').text()).toContain('10 issues selected');
expect(findIcon().exists()).toBe(true);
});
it("doesn't display the info text when issuableCount is -1", () => {
- wrapper = createComponent({ injectedProperties: { issuableCount: -1 } });
+ wrapper = createComponent({ props: { issuableCount: -1 } });
expect(wrapper.findByTestId('issuable-count-note').exists()).toBe(false);
});
});
@@ -83,7 +83,7 @@ describe('CsvExportModal', () => {
describe('primary button', () => {
it('passes the exportCsvPath to the button', () => {
const exportCsvPath = '/gitlab-org/gitlab-test/-/issues/export_csv';
- wrapper = createComponent({ injectedProperties: { exportCsvPath } });
+ wrapper = createComponent({ props: { exportCsvPath } });
expect(findButton().attributes('href')).toBe(exportCsvPath);
});
});