Skip to content

Commit

Permalink
Stylistic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacqary committed Dec 19, 2019
1 parent ef00491 commit 8cb525d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const WithLogFilterUrlState: React.FC = () => {
};

const mapToFilterQuery = (value: any): LogFilterUrlState | undefined =>
value && value.kind === 'kuery' && typeof value.expression === 'string'
value?.kind === 'kuery' && typeof value.expression === 'string'
? {
kind: value.kind,
expression: value.expression,
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/functional/apps/infra/link_to.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const currentUrl = await browser.getCurrentUrl();
const [, currentHash] = decodeURIComponent(currentUrl).split('#');
// Account for unpredictable location of the g parameter in the search string
expect(currentHash.slice(0, 13)).to.be(expectedRedirectPath);
expect(currentHash.slice(13)).to.contain(expectedSearchString);
expect(currentHash.slice(0, expectedRedirectPath.length)).to.be(expectedRedirectPath);
expect(currentHash.slice(expectedRedirectPath.length)).to.contain(expectedSearchString);
});
});
});
Expand Down

0 comments on commit 8cb525d

Please sign in to comment.