-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ae236c
commit 0ddc198
Showing
3 changed files
with
12 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import React from 'react' | ||
import { Grid } from 'stardust' | ||
import Grid from 'src/collections/Grid/Grid' | ||
import GridRow from 'src/collections/Grid/GridRow' | ||
import GridColumn from 'src/collections/Grid/GridColumn' | ||
import * as common from 'test/specs/commonTests' | ||
|
||
describe('Grid', () => { | ||
it('renders its children', () => { | ||
deprecatedRender(<Grid>check it out</Grid>) | ||
.assertText('check it out') | ||
}) | ||
common.isConformant(Grid) | ||
common.hasUIClassName(Grid) | ||
common.rendersChildren(Grid) | ||
common.hasSubComponents(Grid, [GridRow, GridColumn]) | ||
}) |
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,21 +1,7 @@ | ||
import Grid from 'src/collections/Grid/Grid' | ||
import GridRow from 'src/collections/Grid/GridRow' | ||
import GridColumn from 'src/collections/Grid/GridColumn' | ||
import * as common from '../../commonTests' | ||
|
||
describe('Grid', () => { | ||
common.isConformant(Grid) | ||
common.hasUIClassName(Grid) | ||
common.rendersChildren(Grid) | ||
common.hasSubComponents(Grid, [GridRow, GridColumn]) | ||
}) | ||
|
||
describe('GridRow', () => { | ||
common.isConformant(GridRow) | ||
common.rendersChildren(GridRow) | ||
}) | ||
import * as common from 'test/specs/commonTests' | ||
|
||
describe('GridColumn', () => { | ||
common.isConformant(GridRow) | ||
common.rendersChildren(GridRow) | ||
common.isConformant(GridColumn) | ||
common.rendersChildren(GridColumn) | ||
}) |
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,21 +1,7 @@ | ||
import Grid from 'src/collections/Grid/Grid' | ||
import GridRow from 'src/collections/Grid/GridRow' | ||
import GridColumn from 'src/collections/Grid/GridColumn' | ||
import * as common from '../../commonTests' | ||
|
||
describe('Grid', () => { | ||
common.isConformant(Grid) | ||
common.hasUIClassName(Grid) | ||
common.rendersChildren(Grid) | ||
common.hasSubComponents(Grid, [GridRow, GridColumn]) | ||
}) | ||
import * as common from 'test/specs/commonTests' | ||
|
||
describe('GridRow', () => { | ||
common.isConformant(GridRow) | ||
common.rendersChildren(GridRow) | ||
}) | ||
|
||
describe('GridColumn', () => { | ||
common.isConformant(GridRow) | ||
common.rendersChildren(GridRow) | ||
}) |