-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a temporary login form add a temporary get all articles page add read one article page add a dropdown button add the star rating modal add the an on-success notification [Starts #166840975]
- Loading branch information
Showing
24 changed files
with
1,067 additions
and
115 deletions.
There are no files selected for viewing
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,24 @@ | ||
import React from 'react'; | ||
import expect from 'expect'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import Articles from '../src/views/Articles/Articles'; | ||
|
||
describe('App', () => { | ||
let app; | ||
beforeEach(() => { | ||
app = shallow(<Articles />); | ||
}); | ||
|
||
it('renders successfully', () => { | ||
expect(app).toBeDefined(); | ||
}); | ||
|
||
it('renders a div component', () => { | ||
expect(app.find('div').length).toBe(1); | ||
}); | ||
|
||
it('tags have classes', () => { | ||
expect(app.find('_class').length).toBe(35); | ||
}); | ||
}); |
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,24 @@ | ||
import React from 'react'; | ||
import expect from 'expect'; | ||
import { shallow, mount } from 'enzyme'; | ||
|
||
import Card from '../src/components/Card'; | ||
|
||
|
||
describe('App', () => { | ||
let app; | ||
beforeEach(() => { | ||
app = shallow(<Card />); | ||
}); | ||
|
||
it('renders successfully', () => { | ||
expect(app).toBeDefined(); | ||
}); | ||
it('renders a div component', () => { | ||
expect(app.find('div').length).toBe(1); | ||
}); | ||
|
||
it('renders classNames component', () => { | ||
expect(app.find('_class').length).toBe(7); | ||
}); | ||
}); |
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,18 @@ | ||
import React from 'react'; | ||
import expect from 'expect'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import Dropdown from '../src/components/Dropdown'; | ||
|
||
|
||
describe('App', () => { | ||
let app; | ||
beforeEach(() => { | ||
app = shallow(<Dropdown />); | ||
}); | ||
|
||
it('renders successfully', () => { | ||
expect(app).toBeDefined(); | ||
}); | ||
|
||
}); |
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,41 @@ | ||
import React from 'react'; | ||
import expect from 'expect'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import RatingsModal from '../src/components/RatingsModal'; | ||
|
||
|
||
describe('App', () => { | ||
let app; | ||
beforeEach(() => { | ||
app = shallow(<RatingsModal />); | ||
}); | ||
|
||
it('renders successfully', () => { | ||
expect(app).toBeDefined(); | ||
console.log(app.debug()) | ||
}); | ||
|
||
it('tags have classes', () => { | ||
expect(app.find('_class').length).toBe(9); | ||
}); | ||
|
||
it('renders a span tag', () => { | ||
expect(app.find('span').length).toBe(1); | ||
}); | ||
|
||
it('renders a div', () => { | ||
expect(app.find('div').length).toBe(1); | ||
}); | ||
|
||
it('renders a h2 tag', () => { | ||
expect(app.find('h2').length).toBe(1); | ||
}); | ||
|
||
it('renders StarRatingComponent', () => { | ||
expect(app.find('StarRatingComponent').length).toBe(1); | ||
}); | ||
}); | ||
|
||
|
||
|
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,16 @@ | ||
import React from 'react'; | ||
import expect from 'expect'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import ReadArticles from '../src/views/Articles/ReadArticle'; | ||
|
||
describe('App', () => { | ||
let app; | ||
beforeEach(() => { | ||
app = shallow(<ReadArticles />); | ||
}); | ||
|
||
it('renders successfully', () => { | ||
expect(app).toBeDefined(); | ||
}); | ||
}); |
Oops, something went wrong.