chore: restructure project into yarn workspaces, remove next

This commit is contained in:
41666 2021-03-09 23:25:16 -05:00
parent 49e308507e
commit 8d06327c03
266 changed files with 16466 additions and 3350 deletions

View file

@ -0,0 +1,19 @@
jest.unmock('./ServerMasthead');
import { shallow } from 'enzyme';
import * as React from 'react';
import { mastheadSlugs } from '../../fixtures/storyData';
import { ServerMasthead } from './ServerMasthead';
import { Editable } from './ServerMasthead.styled';
it('shows Edit Server when editable is true', () => {
const view = shallow(<ServerMasthead editable={true} guild={mastheadSlugs[0]} />);
expect(view.find(Editable).length).not.toBe(0);
});
it('hides Edit Server when editable is true', () => {
const view = shallow(<ServerMasthead editable={false} guild={mastheadSlugs[0]} />);
expect(view.find(Editable).length).toBe(0);
});