mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
9f6106cfe9
* chore: fix unit test, forgotten line on merge chore: add node 11 to circleci (#1153) chore: fix the use of Node 11 in CircleCI (#1154) refactor: added css in js, new design, added types feat: added Tag component refactor: added modifiers refactor: replaced by polished ellipsis refactor: added types, new design and css in js refactor: removed ul. it needs refactor refactor: changed media queries refactor: changed icon height refactor: changed Header media queries refactor: removed margin top refactor: updated snapshots refactor: removed unnecessary format author refactor: added license icon & changed size refactor: changed media queries refactor: added icon size refactor: changed media queries refactor: updated snap refactor: replaced Description by Details refactor: updated tests refactor: fixed modifiers type feat: created missed types fix: fixed types fix: fixed prop type fix: fixed undefined prop refactor: replaced label by name refactor: updated snap refactor: moved polished to dev refactor: changed formatAuthor and pkg author type fix: removed incorrect meta's type refactor: removed polished refactor: added spacing & ellipsis mixin refactor: added modifier type refactor: changed datetime format refactor: updated snapshots refactor: rreplaced polished by mixins func * refactor: updated styled * fix: added missed semicolon * refactor: updated media * refactor: updated tests * refactor: organized modifiers * refactor: removed unused imports * refactor: design adjusts * refactor: updated snapshot * refactor: changed minor things * refactor: updated snapshots * refactor: commented tests. fix later |
||
---|---|---|
.. | ||
__mocks__ | ||
__snapshots__ | ||
PackageSidebar | ||
store | ||
copyToClipBoard.spec.js | ||
footer.spec.js | ||
header.spec.js | ||
help.spec.js | ||
login.spec.js | ||
noitems.spec.js | ||
notfound.spec.js | ||
package.spec.js | ||
packagedetail.spec.js | ||
packagelist.spec.js | ||
readme.spec.js | ||
search.spec.js |
/** * Readme component */ import React from 'react'; import { shallow, mount } from 'enzyme'; import Readme from '../../../../src/webui/components/Readme/index'; describe('<Readme /> component', () => { it('should load the component in default state', () => { const wrapper = mount(<Readme description='test' />); expect(wrapper.html()).toMatchSnapshot(); }); it('should dangerously set html', () => { const wrapper = shallow(<Readme description='<h1>This is a test string</h1>' />); expect(wrapper.html()).toEqual( '<div class="markdown-body"><h1>This is a test string</h1></div>' ); expect(wrapper.html()).toMatchSnapshot(); }); });