-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(mixed): remove useless content tests
- Loading branch information
Alexander Fedyashov
committed
Oct 2, 2017
1 parent
8ccf696
commit 11fef64
Showing
17 changed files
with
5 additions
and
214 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
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 |
---|---|---|
@@ -1,19 +1,7 @@ | ||
import faker from 'faker' | ||
import React from 'react' | ||
|
||
import FeedDate from 'src/views/Feed/FeedDate' | ||
import * as common from 'test/specs/commonTests' | ||
|
||
describe('FeedDate', () => { | ||
common.isConformant(FeedDate) | ||
common.rendersChildren(FeedDate) | ||
|
||
it('renders text with date prop', () => { | ||
const text = faker.hacker.phrase() | ||
|
||
shallow(<FeedDate content={text} />) | ||
.children() | ||
.at(0) | ||
.should.contain.text(text) | ||
}) | ||
}) |
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
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 |
---|---|---|
@@ -1,19 +1,7 @@ | ||
import faker from 'faker' | ||
import React from 'react' | ||
|
||
import FeedUser from 'src/views/Feed/FeedUser' | ||
import * as common from 'test/specs/commonTests' | ||
|
||
describe('FeedUser', () => { | ||
common.isConformant(FeedUser) | ||
common.rendersChildren(FeedUser) | ||
|
||
it('renders text with user prop', () => { | ||
const text = faker.hacker.phrase() | ||
|
||
shallow(<FeedUser content={text} />) | ||
.children() | ||
.at(0) | ||
.should.contain.text(text) | ||
}) | ||
}) |
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
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 |
---|---|---|
@@ -1,24 +1,7 @@ | ||
import faker from 'faker' | ||
import React from 'react' | ||
|
||
import StatisticLabel from 'src/views/Statistic/StatisticLabel' | ||
import * as common from 'test/specs/commonTests' | ||
|
||
describe('StatisticLabel', () => { | ||
common.isConformant(StatisticLabel) | ||
common.rendersChildren(StatisticLabel) | ||
|
||
it('renders an div element', () => { | ||
shallow(<StatisticLabel />) | ||
.should.have.tagName('div') | ||
}) | ||
|
||
it('renders text with label prop', () => { | ||
const text = faker.hacker.phrase() | ||
|
||
shallow(<StatisticLabel label={text} />) | ||
.children() | ||
.at(0) | ||
.should.contain.text(text) | ||
}) | ||
}) |
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 was deleted.
Oops, something went wrong.