Skip to content

Commit

Permalink
test(Card): remove cruft tests (#2294)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored Nov 5, 2017
1 parent 9ef86ab commit 6ef5af5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
11 changes: 0 additions & 11 deletions test/specs/views/Card/CardDescription-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import faker from 'faker'
import _ from 'lodash'
import React from 'react'

import { SUI } from 'src/lib'
import CardDescription from 'src/views/Card/CardDescription'
Expand All @@ -10,13 +8,4 @@ describe('CardDescription', () => {
common.isConformant(CardDescription)
common.rendersChildren(CardDescription)
common.implementsTextAlignProp(CardDescription, _.without(SUI.TEXT_ALIGNMENTS, 'justified'))

describe('description prop', () => {
it('renders child text', () => {
const text = faker.hacker.phrase()

shallow(<CardDescription content={text} />)
.should.contain.text(text)
})
})
})
11 changes: 0 additions & 11 deletions test/specs/views/Card/CardHeader-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import faker from 'faker'
import _ from 'lodash'
import React from 'react'

import { SUI } from 'src/lib'
import CardHeader from 'src/views/Card/CardHeader'
Expand All @@ -11,13 +9,4 @@ describe('CardHeader', () => {
common.rendersChildren(CardHeader)

common.implementsTextAlignProp(CardHeader, _.without(SUI.TEXT_ALIGNMENTS, 'justified'))

describe('description prop', () => {
it('renders child text', () => {
const text = faker.hacker.phrase()

shallow(<CardHeader content={text} />)
.should.contain.text(text)
})
})
})
11 changes: 0 additions & 11 deletions test/specs/views/Card/CardMeta-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import faker from 'faker'
import _ from 'lodash'
import React from 'react'

import { SUI } from 'src/lib'
import CardMeta from 'src/views/Card/CardMeta'
Expand All @@ -11,13 +9,4 @@ describe('CardMeta', () => {
common.rendersChildren(CardMeta)

common.implementsTextAlignProp(CardMeta, _.without(SUI.TEXT_ALIGNMENTS, 'justified'))

describe('description prop', () => {
it('renders child text', () => {
const text = faker.hacker.phrase()

shallow(<CardMeta content={text} />)
.should.contain.text(text)
})
})
})

0 comments on commit 6ef5af5

Please sign in to comment.