-
Notifications
You must be signed in to change notification settings - Fork 47
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
70ff2a0
commit d4df6a9
Showing
6 changed files
with
144 additions
and
0 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,33 @@ | ||
import FileInput from './FileInput' | ||
|
||
describe('FileInput', () => { | ||
it('should render without throwing', () => { | ||
shallow(<FileInput />) | ||
}) | ||
|
||
it('should add className to child', () => { | ||
const testClassName = '__TEST__' | ||
|
||
const childClassName = shallow(<FileInput className={testClassName} />) | ||
.first() | ||
.prop('className') | ||
|
||
expect(childClassName).to.contain(testClassName) | ||
}) | ||
}) | ||
|
||
describe('FileInput.Stack', () => { | ||
it('should render without throwing', () => { | ||
shallow(<FileInput.Stack />) | ||
}) | ||
|
||
it('should add className to child', () => { | ||
const testClassName = '__TEST__' | ||
|
||
const childClassName = shallow(<FileInput.Stack className={testClassName} />) | ||
.first() | ||
.prop('className') | ||
|
||
expect(childClassName).to.contain(testClassName) | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Textarea from './Textarea' | ||
|
||
describe('Textarea', () => { | ||
it('should render without throwing', () => { | ||
shallow(<Textarea />) | ||
}) | ||
|
||
it('should add className to child', () => { | ||
const testClassName = '__TEST__' | ||
|
||
const childClassName = shallow(<Textarea className={testClassName} />) | ||
.first() | ||
.prop('className') | ||
|
||
expect(childClassName).to.contain(testClassName) | ||
}) | ||
}) | ||
|
||
describe('Textarea.Stack', () => { | ||
it('should render without throwing', () => { | ||
shallow(<Textarea.Stack />) | ||
}) | ||
|
||
it('should add className to child', () => { | ||
const testClassName = '__TEST__' | ||
|
||
const childClassName = shallow(<Textarea.Stack className={testClassName} />) | ||
.first() | ||
.prop('className') | ||
|
||
expect(childClassName).to.contain(testClassName) | ||
}) | ||
}) |