Updated EditTagsModal to be a functional component

This commit is contained in:
Alejandro Celaya
2020-05-31 10:31:00 +02:00
parent d0b3edaa2f
commit cd1f186e28
2 changed files with 26 additions and 53 deletions

View File

@@ -37,17 +37,6 @@ describe('<EditTagsModal />', () => {
jest.clearAllMocks();
});
it('resets tags when component is mounted', () => {
createWrapper({
shortCode,
tags: [],
saving: false,
error: false,
});
expect(resetShortUrlsTags).toHaveBeenCalledTimes(1);
});
it('renders tags selector and save button when loaded', () => {
const wrapper = createWrapper({
shortCode,