Skip to content

Commit

Permalink
adapt some snapshot test (#68489)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet authored Jun 10, 2020
1 parent cac9018 commit 50d47a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 134 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ describe('SavedObjectsTable', () => {
component.instance().showImportFlyout();
component.update();

expect(component.find(Flyout)).toMatchSnapshot();
expect(component.find(Flyout).length).toBe(1);
});

it('should hide the flyout', async () => {
Expand Down Expand Up @@ -450,7 +450,7 @@ describe('SavedObjectsTable', () => {
} as SavedObjectWithMetadata);
component.update();

expect(component.find(Relationships)).toMatchSnapshot();
expect(component.find(Relationships).length).toBe(1);
expect(component.state('relationshipObject')).toEqual({
id: '2',
type: 'search',
Expand Down

0 comments on commit 50d47a2

Please sign in to comment.