remove obsolete test
This commit is contained in:
@ -1,43 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { shallow } from 'enzyme';
|
|
||||||
import EditorToolbar from '../EditorInterface/EditorToolbar';
|
|
||||||
|
|
||||||
describe('EntryEditorToolbar', () => {
|
|
||||||
it('should have the Save button disabled initally, and the Cancel button enabled', () => {
|
|
||||||
const component = shallow(
|
|
||||||
<EntryEditorToolbar
|
|
||||||
onPersist={() => {}}
|
|
||||||
onCancelEdit={() => {}}
|
|
||||||
onDelete={() => {}}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
const tree = component.html();
|
|
||||||
expect(tree).toMatchSnapshot();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should enable the Save button', () => {
|
|
||||||
const component = shallow(
|
|
||||||
<EntryEditorToolbar
|
|
||||||
enableSave
|
|
||||||
onPersist={() => {}}
|
|
||||||
onCancelEdit={() => {}}
|
|
||||||
onDelete={() => {}}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
const tree = component.html();
|
|
||||||
expect(tree).toMatchSnapshot();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should disable and update label of Save button when persisting', () => {
|
|
||||||
const component = shallow(
|
|
||||||
<EntryEditorToolbar
|
|
||||||
isPersisting
|
|
||||||
onPersist={() => {}}
|
|
||||||
onCancelEdit={() => {}}
|
|
||||||
onDelete={() => {}}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
const tree = component.html();
|
|
||||||
expect(tree).toMatchSnapshot();
|
|
||||||
});
|
|
||||||
});
|
|
@ -1,7 +0,0 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`EntryEditorToolbar should disable and update label of Save button when persisting 1`] = `"<div><button disabled=\\"\\" class=\\"\\" type=\\"button\\" data-react-toolbox=\\"button\\">Saving...</button> <button class=\\"\\" type=\\"button\\" data-react-toolbox=\\"button\\">Cancel</button></div>"`;
|
|
||||||
|
|
||||||
exports[`EntryEditorToolbar should enable the Save button 1`] = `"<div><button class=\\"\\" type=\\"button\\" data-react-toolbox=\\"button\\">Save</button> <button class=\\"\\" type=\\"button\\" data-react-toolbox=\\"button\\">Cancel</button></div>"`;
|
|
||||||
|
|
||||||
exports[`EntryEditorToolbar should have the Save button disabled initally, and the Cancel button enabled 1`] = `"<div><button disabled=\\"\\" class=\\"\\" type=\\"button\\" data-react-toolbox=\\"button\\">Save</button> <button class=\\"\\" type=\\"button\\" data-react-toolbox=\\"button\\">Cancel</button></div>"`;
|
|
Reference in New Issue
Block a user