Commit c4aae485 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'jdb/refactor-app_spec-use-findComponent' into 'master'

Refactor find to findComponent: app_spec.js

See merge request gitlab-org/gitlab!60839
parents 4e6f6aac df52f63f
...@@ -78,12 +78,12 @@ describe('CodeReviewAnalyticsApp component', () => { ...@@ -78,12 +78,12 @@ describe('CodeReviewAnalyticsApp component', () => {
wrapper.destroy(); wrapper.destroy();
}); });
const findFilterBar = () => wrapper.find(FilterBar); const findFilterBar = () => wrapper.findComponent(FilterBar);
const findEmptyState = () => wrapper.find(GlEmptyState); const findEmptyState = () => wrapper.findComponent(GlEmptyState);
const findLoadingIcon = () => wrapper.find(GlLoadingIcon); const findLoadingIcon = () => wrapper.findComponent(GlLoadingIcon);
const findBadge = () => wrapper.find(GlBadge); const findBadge = () => wrapper.findComponent(GlBadge);
const findMrTable = () => wrapper.find(MergeRequestTable); const findMrTable = () => wrapper.findComponent(MergeRequestTable);
const findPagination = () => wrapper.find(GlPagination); const findPagination = () => wrapper.findComponent(GlPagination);
describe('template', () => { describe('template', () => {
it('renders the filter bar component', () => { it('renders the filter bar component', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment