forked from missive/emoji-mart
-
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.
Add storybook to github pages to travis
- Loading branch information
Showing
7 changed files
with
31 additions
and
24 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 |
---|---|---|
|
@@ -9,8 +9,15 @@ branches: | |
only: | ||
- master | ||
deploy: | ||
provider: npm | ||
api_key: '${NPM_TOKEN}' | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
- provider: npm | ||
email: '[email protected]' | ||
api_key: '${NPM_TOKEN}' | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
- provider: script | ||
skip_cleanup: true | ||
script: | ||
- lerna run --scope @deskpro/content-editor-storybook deploy-storybook -- -- --ci | ||
on: | ||
branch: master |
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,29 +1,29 @@ | ||
import emojiIndex from '../icon-index.js' | ||
import iconIndex from '../icon-index.js' | ||
|
||
test('should work', () => { | ||
expect(emojiIndex.search('wheelchair')).toEqual([ | ||
expect(iconIndex.search('wheelchair')).toEqual([ | ||
'accessible-icon', | ||
'crutch', | ||
'wheelchair', | ||
]) | ||
}) | ||
|
||
test('should filter only emojis we care about, exclude pineapple', () => { | ||
let emojisToShowFilter = (data) => { | ||
test('should filter only icons we care about, exclude pineapple', () => { | ||
let iconsToShowFilter = (data) => { | ||
data !== 'deskpro' | ||
} | ||
expect(emojiIndex.search('desk', { emojisToShowFilter })).not.toContain( | ||
expect(iconIndex.search('desk', { iconsToShowFilter })).not.toContain( | ||
'deskpro', | ||
) | ||
}) | ||
|
||
test('can search for thinking_face', () => { | ||
expect(emojiIndex.search('fort awesome')).toEqual([ | ||
expect(iconIndex.search('fort awesome')).toEqual([ | ||
'fort-awesome', | ||
'fort-awesome-alt', | ||
]) | ||
}) | ||
|
||
test('can search for smile-beam', () => { | ||
expect(emojiIndex.search('deskp')).toEqual(['deskpro']) | ||
expect(iconIndex.search('deskp')).toEqual(['deskpro']) | ||
}) |
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