Replace 2 assertions with 1

This commit is contained in:
Shaunak Kashyap 2016-07-01 17:07:45 -07:00
parent 42cc301366
commit de1ea90a84
No known key found for this signature in database
GPG key ID: 0512E188DDE4FF2A

View file

@ -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', () => {