-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure components. Scaffold tests
- Loading branch information
Sarah Allen
committed
Apr 1, 2019
1 parent
d624d87
commit c12e81f
Showing
12 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
11 changes: 2 additions & 9 deletions
11
...ib-classifier/src/components/Classifier/components/FieldGuide/FieldGuideContainer.spec.js
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,14 +1,7 @@ | ||
import { shallow, mount } from 'enzyme' | ||
import React from 'react' | ||
import FieldGuideButton from './FieldGuideButton' | ||
import FieldGuideContainer from './FieldGuideContainer' | ||
|
||
describe('Component > FieldGuideButton', function () { | ||
it('should render without crashing', function () { | ||
shallow(<FieldGuideButton />) | ||
}) | ||
describe('Component > FieldGuideContainer', function () { | ||
|
||
it('should have an ARIA label', function () { | ||
const wrapper = mount(<FieldGuideButton />) | ||
expect(wrapper.find('button').prop('aria-label')).to.equal('Open Field Guide') | ||
}) | ||
}) |
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
Empty file.
1 change: 1 addition & 0 deletions
1
...Classifier/components/FieldGuide/components/FieldGuide/components/FieldGuideItem/index.js
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 @@ | ||
export { default } from './FieldGuideItem' |
Empty file.
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
Empty file.
File renamed without changes.
Empty file.
1 change: 1 addition & 0 deletions
1
...lassifier/components/FieldGuide/components/FieldGuide/components/FieldGuideItems/index.js
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 @@ | ||
export { default } from './FieldGuideItems' |
2 changes: 1 addition & 1 deletion
2
...ide/components/FieldGuide/locales/en.json → ...omponents/FieldGuideItems/locales/en.json
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,5 +1,5 @@ | ||
{ | ||
"FieldGuideItem": { | ||
"FieldGuideItemButton": { | ||
"ariaTitle": "Select %(title)s" | ||
} | ||
} |