diff --git a/x-pack/plugins/reporting/public/lib/job.test.ts b/x-pack/plugins/reporting/public/lib/job.test.ts index f5ecd11eae605..8e6ebe51cc66d 100644 --- a/x-pack/plugins/reporting/public/lib/job.test.ts +++ b/x-pack/plugins/reporting/public/lib/job.test.ts @@ -13,7 +13,7 @@ describe('Job', () => { it('should provide a pretty name for all known job types', () => { for (const jobType of Object.values(jobTypes)) { const job = new Job({ ...mockJobs[0], jobtype: jobType }); - expect(job.prettyJobTypeName).toBeTruthy(); + expect(job.prettyJobTypeName).toEqual(expect.any(String)); } });