Update failing specs & linter errors & changelog

This commit is contained in:
Fernando Arias 2019-01-10 10:36:27 -05:00
parent 42bfffc495
commit f3465c7293
4 changed files with 4 additions and 7 deletions

View file

@ -1,10 +1,7 @@
import _ from 'underscore';
import { __ } from '~/locale';
import { isScrolledToBottom } from '~/lib/utils/scroll_utils';
export const headerActions = state => {
return [];
};
export const headerActions = () => [];
export const headerTime = state => (state.job.started ? state.job.started : state.job.created_at);

View file

@ -1,5 +1,5 @@
---
title: Move job cancel button
title: Move cancel & new issue button on job page
merge_request: 24074
author:
type: changed

View file

@ -191,7 +191,7 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
href = new_project_issue_path(project, options)
page.within('.header-action-buttons') do
page.within('.build-sidebar') do
expect(find('.js-new-issue')['href']).to include(href)
end
end

View file

@ -10,7 +10,7 @@ describe('Job Store Getters', () => {
describe('headerActions', () => {
describe('with new issue path', () => {
it('returns an empty array', () => {
it('returns an empty array with no actions', () => {
localState.job.new_issue_path = 'issues/new';
expect(getters.headerActions(localState)).toEqual([]);