-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { Link } from "react-router-dom"; | ||
|
||
const cards = () => { | ||
return ( | ||
<div className="flex justify-center w-full md:hidden "> | ||
<div className="max-w-sm flex items-center h-screen overflow-hidden w-full"> | ||
<div className="flex justify-center items-center h-screen flex-col w-full"> | ||
<div className="flex flex-col items-center"> | ||
<a | ||
href="/login" | ||
className="bg-teal-500 text-white text-center text-xs w-32 uppercase py-3 px-5 " | ||
> | ||
LOGIN | ||
</a> | ||
|
||
<a | ||
href="/login" | ||
className="bg-white-500 mt-6 text-center border border-red-500 w-32 text-xs py-3 px-1 uppercase text-red-600" | ||
> | ||
get started | ||
</a> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
export default cards; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Application test should renders without crashing 1`] = ` | ||
<cards> | ||
<div | ||
className="flex justify-center w-full md:hidden " | ||
> | ||
<div | ||
className="max-w-sm flex items-center h-screen overflow-hidden w-full" | ||
> | ||
<div | ||
className="flex justify-center items-center h-screen flex-col w-full" | ||
> | ||
<div | ||
className="flex flex-col items-center" | ||
> | ||
<a | ||
className="bg-teal-500 text-white text-center text-xs w-32 uppercase py-3 px-5 " | ||
href="/login" | ||
> | ||
LOGIN | ||
</a> | ||
<a | ||
className="bg-white-500 mt-6 text-center border border-red-500 w-32 text-xs py-3 px-1 uppercase text-red-600" | ||
href="/login" | ||
> | ||
get started | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</cards> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import toJson from 'enzyme-to-json'; | ||
import { mount } from './enzyme'; | ||
import Auth from '../src/components/auth'; | ||
|
||
|
||
describe('Application test', () => { | ||
it('should renders without crashing', () => { | ||
const wrapper = mount(<Auth />); | ||
expect(toJson(wrapper)).toMatchSnapshot(); | ||
expect(wrapper.find('a').length).toBeGreaterThan(1); | ||
expect(wrapper.find('a')).toHaveLength(2); | ||
expect(wrapper.find('[href="/login"]')).toHaveLength(2); | ||
}); | ||
}); |