From de1ea90a846d1f2be66976ec3bc6d3d5096631ee Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Fri, 1 Jul 2016 17:07:45 -0700 Subject: [PATCH] Replace 2 assertions with 1 --- src/ui/public/chrome/api/__tests__/nav.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/public/chrome/api/__tests__/nav.js b/src/ui/public/chrome/api/__tests__/nav.js index a9301cbebebe..735cde468398 100644 --- a/src/ui/public/chrome/api/__tests__/nav.js +++ b/src/ui/public/chrome/api/__tests__/nav.js @@ -54,8 +54,7 @@ describe('chrome nav apis', function () { const { chrome, internals } = init({ appUrlStore, nav }); const navLink = chrome.getNavLinkById('kibana:discover'); - expect(navLink).to.not.be(undefined); - expect(navLink.title).to.be('Discover'); + expect(navLink).to.eql(nav[0]); }); it ('throws an error if the nav link with the given ID is not found', () => {