Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Mar 5, 2020
1 parent 61f2b35 commit 57cea75
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ describe('IndexPattern Data Panel', () => {

function testProps() {
const setState = jest.fn();
core.http.post.mockImplementation(async (path) => {
const parts = (path as unknown as string).split('/');
core.http.post.mockImplementation(async path => {
const parts = ((path as unknown) as string).split('/');
const indexPatternTitle = parts[parts.length - 1];
return {
indexPatternTitle: `${indexPatternTitle}_testtitle`,
Expand Down Expand Up @@ -495,7 +495,7 @@ describe('IndexPattern Data Panel', () => {
}
++queryCount;

const parts = (path as unknown as string).split('/');
const parts = ((path as unknown) as string).split('/');
const indexPatternTitle = parts[parts.length - 1];
const result = Promise.resolve({
indexPatternTitle,
Expand Down

0 comments on commit 57cea75

Please sign in to comment.