Skip to content

Commit

Permalink
snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
peterholmberg committed Oct 2, 2018
1 parent a188cea commit cc1e229
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
8 changes: 0 additions & 8 deletions public/app/core/components/OrgActionBar/OrgActionBar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,4 @@ describe('Render', () => {

expect(wrapper).toMatchSnapshot();
});

it('should hide layout mode', () => {
const wrapper = setup({
showLayoutMode: false,
});

expect(wrapper).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -1,40 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Render should hide layout mode 1`] = `
<div
className="page-action-bar"
>
<div
className="gf-form gf-form--grow"
>
<label
className="gf-form--has-input-icon"
>
<input
className="gf-form-input width-20"
onChange={[Function]}
placeholder="Filter by name or type"
type="text"
value=""
/>
<i
className="gf-form-input-icon fa fa-search"
/>
</label>
</div>
<div
className="page-action-bar__spacer"
/>
<a
className="btn btn-success"
href="some/url"
target="_blank"
>
test
</a>
</div>
`;

exports[`Render should render component 1`] = `
<div
className="page-action-bar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports[`Render should render action bar and datasources 1`] = `
"title": "Add data source",
}
}
searchQuery=""
setLayoutMode={[Function]}
setSearchQuery={[Function]}
/>
Expand Down

0 comments on commit cc1e229

Please sign in to comment.