Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Mar 20, 2020
1 parent 26d182f commit 2efcfa9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('TimelinesTable', () => {
expect(
wrapper
.find('thead tr th')
.at(6)
.at(5)
.find('[data-test-subj="notes-count-header-icon"]')
.first()
.exists()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ describe('createRules', () => {
await createRules({
alertsClient,
actionsClient,
acttions: [],
...params,
ruleId: 'new-rule-id',
enabled: true,
interval: '',
thrttole: null,
name: '',
tags: [],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ describe('updateRules', () => {
await updateRules({
alertsClient,
actionsClient,
actions: [],
savedObjectsClient,
id: '04128c15-0d1b-4716-a4c5-46997ac7f3bd',
...params,
enabled: true,
throttle: null,
interval: '',
name: '',
tags: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class ReportListingUi extends Component<Props, State> {

private renderDeleteButton = () => {
const { selectedJobs } = this.state;
if (selectedJobs.length === 0) return null;
if (selectedJobs.length === 0) return undefined;

const performDelete = async () => {
for (const record of selectedJobs) {
Expand Down

0 comments on commit 2efcfa9

Please sign in to comment.