Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rylnd committed Mar 21, 2020
1 parent 149ec83 commit dd834c1
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
Filter,
FilterManager,
} from '../../../../../../../../../../src/plugins/data/public';
import { mockAboutStepRule } from '../../all/__mocks__/mock';
import { mockAboutStepRule, mockDefineStepRule } from '../../all/__mocks__/mock';
import { coreMock } from '../../../../../../../../../../src/core/public/mocks';
import { DEFAULT_TIMELINE_TITLE } from '../../../../../components/timeline/translations';
import * as i18n from './translations';
Expand Down Expand Up @@ -263,7 +263,7 @@ describe('description_step', () => {
test('returns expected ListItems array when given valid inputs', () => {
const result: ListItems[] = buildListItems(mockAboutStep, schema, mockFilterManager);

expect(result.length).toEqual(10);
expect(result.length).toEqual(9);
});
});

Expand Down Expand Up @@ -431,10 +431,11 @@ describe('description_step', () => {

describe('timeline', () => {
test('returns timeline title if one exists', () => {
const mockDefineStep = mockDefineStepRule();
const result: ListItems[] = getDescriptionItem(
'timeline',
'Timeline label',
mockAboutStep,
mockDefineStep,
mockFilterManager
);

Expand All @@ -444,7 +445,7 @@ describe('description_step', () => {

test('returns default timeline title if none exists', () => {
const mockStep = {
...mockAboutStep,
...mockDefineStepRule(),
timeline: {
id: '12345',
},
Expand Down

0 comments on commit dd834c1

Please sign in to comment.