Skip to content

Commit

Permalink
ft(newArticle)Create NewArticle
Browse files Browse the repository at this point in the history
made editor config
made it possible for a user to create article
[Delivers #167958128]
  • Loading branch information
codexempire committed Aug 30, 2019
1 parent 8f29c46 commit 5d1dc96
Show file tree
Hide file tree
Showing 27 changed files with 1,427 additions and 433 deletions.
15 changes: 9 additions & 6 deletions __test__/App.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,21 @@ describe('Application test', () => {
);

expect(toJson(wrapper)).toMatchSnapshot();
expect(wrapper.find('[to="/"]')).toHaveLength(4);
expect(wrapper.find('Link').length).toBeGreaterThan(1);
expect(wrapper.find('ul')).toHaveLength(1);
expect(wrapper.find('li').length).toBeGreaterThan(1);
});

it('should renders without crashing', () => {
const wrapper = mount(<Auth />);
const wrapper = mount(
<BrowserRouter>
<Auth />
</BrowserRouter>
);
expect(toJson(wrapper)).toMatchSnapshot();
expect(wrapper.find('a').length).toBeGreaterThan(1);
expect(wrapper.find('a')).toHaveLength(2);
expect(wrapper.find('[href="/login"]')).toHaveLength(1);
expect(wrapper.find('[href="/signup"]')).toHaveLength(1);
expect(wrapper.find('Link').length).toBeGreaterThan(1);
expect(wrapper.find('Link')).toHaveLength(2);
expect(wrapper.find('[to="/login"]')).toHaveLength(1);
expect(wrapper.find('[to="/signup"]')).toHaveLength(1);
});
});
Loading

0 comments on commit 5d1dc96

Please sign in to comment.