Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoforth committed Mar 28, 2019
2 parents 8ca0e97 + a27a523 commit 470e0c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/cssresources/src/css-resource-panel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ describe('CSSResourcePanel', () => {
expect(node).toHaveState({ list: [], currentStoryId: '' });
});

it('should not render anything', () => {
expect(node).toBeEmptyRender();
it('should render an empty div', () => {
expect(node.matchesElement('<div></div>')).toEqual(true);
});
});

Expand Down Expand Up @@ -247,13 +247,13 @@ describe('CSSResourcePanel', () => {
});

describe('render', () => {
it('should not render anything when not active', () => {
it('should render an empty div when not active', () => {
const node = shallowNode({
...defaultProps,
active: false,
});
node.instance().onStoryChange('fake-story-id');
expect(node).toBeEmptyRender();
expect(node.matchesElement('<div></div>')).toEqual(true);
});

describe('each list item', () => {
Expand Down

0 comments on commit 470e0c0

Please sign in to comment.