From d7bd0a9fac09d2eab66068b600036aacff5a5c66 Mon Sep 17 00:00:00 2001 From: Chandler Prall Date: Mon, 30 Apr 2018 10:03:34 -0600 Subject: [PATCH] comment why expect.assertions call --- src/components/context_menu/context_menu_panel.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/context_menu/context_menu_panel.test.js b/src/components/context_menu/context_menu_panel.test.js index bac77732624a..35dab1f7479c 100644 --- a/src/components/context_menu/context_menu_panel.test.js +++ b/src/components/context_menu/context_menu_panel.test.js @@ -368,7 +368,7 @@ describe('EuiContextMenuPanel', () => { describe('updating items and content', () => { describe('updates to items', () => { it(`should not re-render if any items's watchedItemProps did not change`, () => { - expect.assertions(2); + expect.assertions(2); // make sure the assertion in the `setProps` callback is executed // by not passing `watchedItemProps` no changes to items should cause a re-render const component = mount( @@ -396,7 +396,7 @@ describe('EuiContextMenuPanel', () => { }); it(`should re-render if any items's watchedItemProps did change`, () => { - expect.assertions(2); + expect.assertions(2); // make sure the assertion in the `setProps` callback is executed // by referencing the `data-counter` property in `watchedItemProps` // changes to the items should be picked up and re-rendered @@ -426,7 +426,7 @@ describe('EuiContextMenuPanel', () => { }); it(`should re-render at all times when children exists`, () => { - expect.assertions(2); + expect.assertions(2); // make sure the assertion in the `setProps` callback is executed const component = mount(