forked from jd-opensource/taro-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change import path and update config
- Loading branch information
1 parent
668c008
commit 8497818
Showing
49 changed files
with
438 additions
and
222 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 |
---|---|---|
|
@@ -7,4 +7,4 @@ git_stats/ | |
yarn-offline/ | ||
docs/ | ||
jest.config.js | ||
__mock__/ | ||
test/__mock__/ |
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
File renamed without changes.
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,22 +1,33 @@ | ||
import Nerv from 'nervjs' | ||
import { renderToString } from 'nerv-server' | ||
|
||
import AtBadge from '../../../.temp/components/badge/index' | ||
import AtButton from '../../../.temp/components/button/index' | ||
import AtBadge from '../../.temp/components/badge/index' | ||
import AtButton from '../../.temp/components/button/index' | ||
|
||
describe('AtBadge Snap', () => { | ||
it('render AtBadge -- props value', () => { | ||
const component = renderToString(<AtBadge value='3'><AtButton loading>按钮文字</AtButton></AtBadge>) | ||
const component = renderToString( | ||
<AtBadge value='3'> | ||
<AtButton loading>按钮文字</AtButton> | ||
</AtBadge> | ||
) | ||
expect(component).toMatchSnapshot() | ||
}) | ||
|
||
it('render AtBadge -- props dot', () => { | ||
const component = renderToString(<AtBadge dot><AtButton loading>按钮文字</AtButton></AtBadge>) | ||
const component = renderToString( | ||
<AtBadge dot> | ||
<AtButton loading>按钮文字</AtButton> | ||
</AtBadge> | ||
) | ||
expect(component).toMatchSnapshot() | ||
}) | ||
|
||
it('render AtBadge -- props maxValue', () => { | ||
const component = renderToString(<AtBadge value='10' maxValue={9}><AtButton loading>按钮文字</AtButton></AtBadge>) | ||
const component = renderToString( | ||
<AtBadge value='10' maxValue={9}> | ||
<AtButton loading>按钮文字</AtButton> | ||
</AtBadge> | ||
) | ||
expect(component).toMatchSnapshot() | ||
}) | ||
}) |
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
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
Oops, something went wrong.