Commit 0e3be014 authored by Vitaly Slobodin's avatar Vitaly Slobodin Committed by Illya Klymov

Apply 1 suggestion(s) to 1 file(s)

parent 9b4f735e
...@@ -23,7 +23,7 @@ const createComponent = (propsData = {}) => { ...@@ -23,7 +23,7 @@ const createComponent = (propsData = {}) => {
const findTableRow = () => wrapper.find('[data-testid="projectTableRow"]'); const findTableRow = () => wrapper.find('[data-testid="projectTableRow"]');
const findWarningIcon = () => const findWarningIcon = () =>
wrapper.findAll(GlIcon).wrappers.find(w => w.props('name') === 'status_warning'); wrapper.findAll(GlIcon).wrappers.find((w) => w.props('name') === 'status_warning');
const findProjectLink = () => wrapper.find(GlLink); const findProjectLink = () => wrapper.find(GlLink);
const getWarningIconTooltipText = () => getBinding(findWarningIcon().element, 'gl-tooltip').value; const getWarningIconTooltipText = () => getBinding(findWarningIcon().element, 'gl-tooltip').value;
......
...@@ -126,7 +126,7 @@ describe('DiscussionNotes', () => { ...@@ -126,7 +126,7 @@ describe('DiscussionNotes', () => {
const noteComponents = [NoteableNote, SystemNote, PlaceholderNote, PlaceholderSystemNote]; const noteComponents = [NoteableNote, SystemNote, PlaceholderNote, PlaceholderSystemNote];
return wrapper return wrapper
.findAll('.notes *') .findAll('.notes *')
.filter(w => noteComponents.some(Component => w.is(Component))) .filter((w) => noteComponents.some((Component) => w.is(Component)))
.at(index); .at(index);
}; };
......
...@@ -137,7 +137,7 @@ describe('note_app', () => { ...@@ -137,7 +137,7 @@ describe('note_app', () => {
}); });
it('should render form', () => { it('should render form', () => {
expect(wrapper.find('.js-main-target-form').element.tagName).toEqual('FORM'); expect(wrapper.find('.js-main-target-form').element.tagName).toBe('FORM');
expect(wrapper.find('.js-main-target-form textarea').attributes('placeholder')).toEqual( expect(wrapper.find('.js-main-target-form textarea').attributes('placeholder')).toEqual(
'Write a comment or drag your files here…', 'Write a comment or drag your files here…',
); );
......
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