X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Futils%2FSpinnerContainer.test.js;h=f9c01e2158d02c5e967ef6374c680e526a20b7a2;hb=eec9820acfb269178e8f8c8bdc2ecfb2d13ad5f4;hp=088ad2ad4d9a1d358b3d3c637dfb65185317dbbc;hpb=75597ac2b51ba62bee33f72a7b55a549cf43a16f;p=aai%2Fsparky-fe.git
diff --git a/test/utils/SpinnerContainer.test.js b/test/utils/SpinnerContainer.test.js
index 088ad2a..f9c01e2 100644
--- a/test/utils/SpinnerContainer.test.js
+++ b/test/utils/SpinnerContainer.test.js
@@ -9,27 +9,27 @@ describe('SpinnerContainer', () => {
it('render spinner - visible', () => {
const spinner = mount(
- Testing Spinner Child
- Testing Spinner Child
+ Testing Spinner Child
+ Testing Spinner Child
);
expect(spinner.props().loading).toEqual(true); // check that the props match
expect(spinner.find(ClipLoader)).toHaveLength(1); // ensure the ClipLoader is mounted
expect(spinner.find(ClipLoader).props().color).toEqual(COLOR_BLUE); // ensure spinner is blue
expect(spinner.find(ClipLoader).props().loading).toEqual(true); // ensure spinner is showing
- expect(spinner.find('div.spinner-content')).toHaveLength(1); // ensure the children are grayed out
- expect(spinner.find('div.spinner-content').children()).toHaveLength(2); // ensure number of children is accurate
+ expect(spinner.find('div.spin-content')).toHaveLength(1); // ensure the children are grayed out
+ expect(spinner.find('div.spin-content').children()).toHaveLength(2); // ensure number of children is accurate
});
it('render spinner - not visible', () => {
const spinner = mount(
- Testing Spinner
+ Testing Spinner
);
expect(spinner.props().loading).toEqual(false);
expect(spinner.find(ClipLoader)).toHaveLength(1);
expect(spinner.find(ClipLoader).props().loading).toEqual(false); // ensure spinner is not showing
- expect(spinner.find('div.spinner-content')).toHaveLength(0);
+ expect(spinner.find('div.spin-content')).toHaveLength(0);
});
})