test('renders correct student view fo the unpinnedDiscussionsBackground decorative component', () => { const props = defaultProps() props.permissions.manage_content = false const tree = shallow(unpinnedDiscussionsBackground(props)) const node = tree.find('Link') equal(node.length, '0') })
test('renders the unpinnedDiscussionsBackground decorative component', () => { const tree = shallow(unpinnedDiscussionsBackground(defaultProps())) const node = tree.find(SVGWrapper) ok(node.exists()) })