Skip to content

Conversation

@AmyFoxFN
Copy link
Contributor

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow DiDi's contributing guide.
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@codecov-io
Copy link

codecov-io commented Apr 24, 2018

Codecov Report

Merging #173 into dev will increase coverage by 0.02%.
The diff coverage is 91.48%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #173      +/-   ##
==========================================
+ Coverage   91.11%   91.13%   +0.02%     
==========================================
  Files         108      108              
  Lines        2351     2358       +7     
  Branches      346      348       +2     
==========================================
+ Hits         2142     2149       +7     
- Misses        105      108       +3     
+ Partials      104      101       -3
Impacted Files Coverage Δ
src/components/dialog/dialog.vue 100% <ø> (ø) ⬆️
src/components/cascade-picker/cascade-picker.vue 75% <ø> (-1.48%) ⬇️
src/components/drawer/drawer-panel.vue 91.66% <ø> (ø) ⬆️
src/components/tip/tip.vue 100% <ø> (ø) ⬆️
src/components/popup/popup.vue 100% <ø> (ø) ⬆️
src/components/date-picker/date-picker.vue 97.18% <ø> (-0.08%) ⬇️
src/components/picker/picker.vue 85.21% <ø> (+3.47%) ⬆️
src/components/toast/toast.vue 100% <ø> (ø) ⬆️
src/components/action-sheet/action-sheet.vue 100% <ø> (ø) ⬆️
src/components/drawer/drawer.vue 96% <0%> (-2.64%) ⬇️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76c2b83...d4f074b. Read the comment docs.

@TravisBuddy
Copy link

Travis tests have failed

Hey @AmyFoxFN,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

npm test
> cube-ui@1.8.0 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.8.0 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:4090) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
24 04 2018 08:26:25.173:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
24 04 2018 08:26:25.177:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
24 04 2018 08:26:25.187:INFO [launcher]: Starting browser PhantomJS
24 04 2018 08:26:26.027:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket NoB8VDK3gcy5lKufAAAA with id 62470561
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should trigger events
    ✓ should call methods
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should trigger events
    ✓ should call methods
    ✓ $updateProps
    ✓ should add warn log when single is true

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
      ✓ should trigger pulling-up
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should trigger other events
    ✓ should call correct method

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✓ should trigger events
    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
    ✓ should trigger change event
    ✓ should go to right pageIndex if set initialIndex

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props

  TimePicker
    ✓ use
    ✗ should render correct contents
	AssertionError: expected '0' to equal '-36' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    ✓ should render correct contents - no showNow
    ✓ should trigger events
    ✓ should add warn log when sigle is true

  Tip.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents with offset[X]
    ✓ should be hidden after clicked content
    ✓ should be hidden after clicked close button

  Toast
    Toast.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents - time 0
      ✓ should render correct contents - with type
    Toast API
      ✓ $createToast API
      ✓ should trigger correct event

  Upload.vue
    ✓ use
    ✓ should render correct contents
    ✓ should add files & upload
    ✓ should remove file
    ✓ should start & pause upload
    ✓ should retry upload
    ✓ should trigger events

  Validator
    Validator.vue
      ✓ use
      ✓ should render correct contents - invalid
      ✓ should reset correctly
      ✓ should not validate when disabled
      ✓ should trigger events
    rules
      ✓ should be valid - no rule
      ✓ should be valid - unstated rule
      ✓ should be invalid - require: array
      ✓ should be invalid - type: string
      ✓ should be valid - type: string
      ✓ should be invalid - type: number
      ✓ should be valid - type: number
      ✓ should be invalid - type: array
      ✓ should be valid - type: array
      ✓ should be invalid - type: date
      ✓ should be valid - type: date
      ✓ should be invalid - type: email
      ✓ should be valid - type: email
      ✓ should be invalid - type: tel
      ✓ should be valid - type: tel
      ✓ should be invalid - type: url
      ✓ should be valid - type: url
      ✓ should be invalid - min: string
      ✓ should be valid - min: number
      ✓ should be valid - max: string
      ✓ should be invalid - max: number
      ✓ should be valid - len: string
      ✓ should be invalid - len: number
      ✓ should be invalid - notWhitespace
      ✓ should be invalid - pattern
      ✓ should be invalid - custom
    methods
      ✓ should add customized rule and message
      ✓ should rewrite raw type
      ✓ should change the language of default message

PhantomJS 2.1.1 (Linux 0.0.0): Executed 202 of 202 (1 FAILED) (35.335 secs / NaN secs)
TOTAL: 1 FAILED, 201 SUCCESS


1) should render correct contents
     TimePicker
     AssertionError: expected '0' to equal '-36' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)



=============================== Coverage summary ===============================
Statements   : 92.96% ( 2205/2372 )
Branches     : 80.28% ( 912/1136 )
Functions    : 90.76% ( 216/238 )
Lines        : 93.02% ( 2199/2364 )
================================================================================

npm ERR! Linux 4.14.12-041412-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "unit"
npm ERR! node v6.14.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.8.0 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.8.0 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.

@TravisBuddy
Copy link

Travis tests have failed

Hey @AmyFoxFN,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

npm test
> cube-ui@1.8.0 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.8.0 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:4089) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
24 04 2018 09:52:55.474:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
24 04 2018 09:52:55.477:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
24 04 2018 09:52:55.549:INFO [launcher]: Starting browser PhantomJS
24 04 2018 09:52:59.606:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket ZObm0liphbtZPagLAAAA with id 65494223
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - no data
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
      ✓ should render correct contents - picker style
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
LOG LOG: 'show'
      ✓ should trigger events
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
LOG LOG: 'show'
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should render correct contents when use alias
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
    ✓ should trigger events
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
    ✓ should call methods
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ $updateProps
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  DatePicker
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
LOG LOG: 'visible', true
    ✓ should render correct contents when configured startColumn and columnCount
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should render correct contents when configured format
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
LOG LOG: 'visible', true
    ✓ should trigger events
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
LOG LOG: 'visible', true
    ✓ should call methods
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
LOG LOG: 'visible', true
    ✓ $updateProps
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should add warn log when single is true

  Dialog
    Dialog.vue
      ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - icon
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - title
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - alert
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - confirm
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - confirmBtn/cancelBtn
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
      ✓ should trigger events
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
      ✓ should not trigger events when btn is disabled
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
    ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
LOG LOG: 'show'
LOG LOG: 'show'
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
      ✓ should trigger pulling-up
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Picker
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
    ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
    ✓ should render correct contents when use alias
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', true
LOG LOG: 'picker show:', false
LOG LOG: 'picker isVisible', true
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', false
LOG LOG: 'visible', false
    ✗ should toggle by change v-model visible
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(true) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(false) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'picker show:', false
    ✓ should trigger events
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
    ✓ should refill correct
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
    ✓ should add warn log when single is true
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
    ✓ setData when picker is invisible
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
    ✓ setData when picker is visible
LOG LOG: 'visible', false

  Popup
    Popup.vue
      ✓ use
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - no type
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
      ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', false
      ✗ should toggle by change v-model visible
	AssertionError: expected spy to have been called exactly once, but it was called twice
	    spy(true) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
	    spy(false) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

LOG LOG: false
LOG LOG: 'visible', false
      ✓ events
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'show'
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should trigger other events
    ✓ should call correct method

  SegmentPicker
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should correct by default
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'picker show:', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', false
LOG LOG: 'visible', true
LOG LOG: 'show'
    ✓ should trigger events
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ $updateProps
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
    ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
    ✓ should render correct contents - update txt
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
    ✓ should trigger events
LOG LOG: 'visible', false

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
    ✓ should trigger change event
    ✓ should go to right pageIndex if set initialIndex

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props

  TimePicker
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
LOG LOG: 'visible', false
LOG LOG: 'visible', false
    ✗ should render correct contents
	AssertionError: expected '0' to equal '-36' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
    ✓ should render correct contents - no showNow
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker show:', false
LOG LOG: 'visible', true
LOG LOG: 'show'
LOG LOG: 'visible', true
LOG LOG: 'picker show:', true
LOG LOG: 'visible', false
LOG LOG: 'visible', false
    ✓ should trigger events
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: 'picker isVisible', false
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should add warn log when sigle is true

  Tip.vue
    ✓ use
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should render correct contents
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should render correct contents with offset[X]
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should be hidden after clicked content
LOG LOG: false
LOG LOG: 'visible', false
    ✓ should be hidden after clicked close button

  Toast
    Toast.vue
      ✓ use
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - no type
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - time 0
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should render correct contents - with type
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
    Toast API
      ✓ $createToast API
LOG LOG: false
LOG LOG: 'visible', false
LOG LOG: false
LOG LOG: 'visible', false
      ✓ should trigger correct event

  Upload.vue
    ✓ use
    ✓ should render correct contents
    ✓ should add files & upload
    ✓ should remove file
    ✓ should start & pause upload
    ✓ should retry upload
    ✓ should trigger events

  Validator
    Validator.vue
      ✓ use
      ✓ should render correct contents - invalid
      ✓ should reset correctly
      ✓ should not validate when disabled
      ✓ should trigger events
    rules
      ✓ should be valid - no rule
      ✓ should be valid - unstated rule
      ✓ should be invalid - require: array
      ✓ should be invalid - type: string
      ✓ should be valid - type: string
      ✓ should be invalid - type: number
      ✓ should be valid - type: number
      ✓ should be invalid - type: array
      ✓ should be valid - type: array
      ✓ should be invalid - type: date
      ✓ should be valid - type: date
      ✓ should be invalid - type: email
      ✓ should be valid - type: email
      ✓ should be invalid - type: tel
      ✓ should be valid - type: tel
      ✓ should be invalid - type: url
      ✓ should be valid - type: url
      ✓ should be invalid - min: string
      ✓ should be valid - min: number
      ✓ should be valid - max: string
      ✓ should be invalid - max: number
      ✓ should be valid - len: string
      ✓ should be invalid - len: number
      ✓ should be invalid - notWhitespace
      ✓ should be invalid - pattern
      ✓ should be invalid - custom
    methods
      ✓ should add customized rule and message
      ✓ should rewrite raw type
      ✓ should change the language of default message

PhantomJS 2.1.1 (Linux 0.0.0): Executed 202 of 202 (3 FAILED) (35.613 secs / NaN secs)
TOTAL: 3 FAILED, 199 SUCCESS


1) should toggle by change v-model visible
     Picker
     AssertionError: expected spy to have been called exactly once, but it was called twice
    spy(true) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
    spy(false) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

2) should toggle by change v-model visible
     Popup Popup.vue
     AssertionError: expected spy to have been called exactly once, but it was called twice
    spy(true) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23
    spy(false) at $emit@webpack:///node_modules/vue/dist/vue.esm.js:2538:0 <- index.js:3007:23 (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

3) should render correct contents
     TimePicker
     AssertionError: expected '0' to equal '-36' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)



=============================== Coverage summary ===============================
Statements   : 93.25% ( 2211/2371 )
Branches     : 80.75% ( 906/1122 )
Functions    : 93.53% ( 217/232 )
Lines        : 93.31% ( 2205/2363 )
================================================================================

npm ERR! Linux 4.14.12-041412-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "unit"
npm ERR! node v6.14.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.8.0 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.8.0 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.

@TravisBuddy
Copy link

Travis tests have failed

Hey @AmyFoxFN,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 6

npm test
> cube-ui@1.8.0 test /home/travis/build/didi/cube-ui
> npm run unit && npm run codecov


> cube-ui@1.8.0 unit /home/travis/build/didi/cube-ui
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

(node:4087) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
25 04 2018 08:43:00.192:INFO [karma]: Karma v1.7.1 server started at http://0.0.0.0:9876/
25 04 2018 08:43:00.195:INFO [launcher]: Launching browser PhantomJS_mobile with unlimited concurrency
25 04 2018 08:43:00.205:INFO [launcher]: Starting browser PhantomJS
25 04 2018 08:43:01.250:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket rB9ttKrc73xH9-xvAAAA with id 2888757
PhantomJS 2.1.1 (Linux 0.0.0) INFO LOG: 'You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html'

  ActionSheet
    ActionSheet.vue
      ✓ use
      ✓ should render correct contents
      ✓ should render correct contents - no data
      ✓ should render correct contents - picker style
      ✓ should trigger events
    ActionSheet API
      ✓ $createActionSheet API

  Button.vue
    ✓ use
    ✓ should render correct contents
    ✓ props
    ✓ events-called
    ✓ events-no-called

  CascadePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should trigger events
    ✓ should call methods
    ✓ $updateProps
    ✓ should add warn log when single is true

  CheckboxGroup.vue
    ✓ use
    ✓ should render correct contents (horizontal=false)
    ✓ should render correct contents (horizontal=true)
    ✓ should change v-model value

  Checkbox.vue
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  DatePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when configured startColumn and columnCount
    ✓ should render correct contents when configured format
    ✓ should trigger events
    ✓ should call methods
    ✓ $updateProps
    ✓ should add warn log when single is true

  Dialog
    Dialog.vue
      ✓ use
      ✓ should render correct contents - icon
      ✓ should render correct contents - title
      ✓ should render correct contents - alert
      ✓ should render correct contents - confirm
      ✓ should render correct contents - confirmBtn/cancelBtn
      ✓ should trigger events
      ✓ should not trigger events when btn is disabled
    Dialog API
      ✓ $createDialog API

  Drawer
    ✓ use
    ✓ should render correct contents
    ✓ should trigger events

  Form.vue
    ✓ use
    ✓ should render correct contents
    ✓ should validate & reset correctly
    ✓ should validate & reset correctly - async validate
    ✓ should validate correctly - trigger blur
    ✓ should validate correctly - debounce
    ✓ should trigger events

  IndexList
    IndexList.vue
      ✓ use
      ✓ should render correct contents
      ✓ should trigger events
      ✓ should trigger pulling-up
      ✓ should trigger pulling-down
      ✓ should fixed title
      ✓ should not have navbar when navbar prop is false
      ✓ run normal when group or item undefined
      ✓ should handle condition of unexpected param

  Input.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not show clear button when no text
    ✓ should show clear button when has text
    ✓ value should be empty when clear button clicked
    ✓ should support more native props
    ✓ should show password eye and work correctly
    ✓ should trigger events

  Loading.vue
    ✓ use
    ✓ should render correct contents - no size
    ✓ should render correct contents - with size

  Picker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents when use alias
    ✓ should toggle by change v-model visible
    ✓ should trigger events
    ✓ should refill correct
    ✓ should add warn log when single is true
    ✓ setData when picker is invisible
    ✓ setData when picker is visible

  Popup
    Popup.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents
      ✓ should toggle by change v-model visible
      ✓ events
    Popup API
      ✓ $createPopup API

  Radio.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - horizontal
    ✓ should toggle v-model value

  Rate.vue
    ✓ use
    ✓ should render correct contents
    ✓ should trigger change event
    ✓ should trigger change event with click

  Scroll
    ✓ use
    ✓ should correct by default
    ✓ should render correct contents
    ✓ should trigger pullingDown
    ✓ should not trigger pullingDown
    ✓ should trigger pullingUp
    ✓ should not trigger pullingUp
    ✓ should trigger click
    ✓ should trigger other events
    ✓ should call correct method

  SegmentPicker
    ✓ use
    ✓ should render correct contents
    ✓ should correct by default
    ✓ should trigger events
    ✓ $updateProps
    ✓ should add warn log when single is true

  Select.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - update txt
    ✓ should trigger events

  Slide.vue
    ✓ use
    ✓ should render correct contents
    ✓ should clone nodes if loop is true
    ✓ should trigger change event
    ✓ should go to right pageIndex if set initialIndex

  Swipe
    ✓ use
    ✓ should render correct contents
    ✓ should shrink if the swipe width not enough
    ✓ should shrink if the last moving direction is right
    ✓ should shrink and not moved if the duration is more than momentumLimitTime and moving distance is less than momentumLimitDistance
    ✓ should shrink and not moved if y-axis distance is more than x-axis distance
    ✓ should grow if the swipe width enough
    ✓ should grow if the duration is less than momentumLimitTime and moving distance is more than momentumLimitDistance
    ✓ should not swipe out of the boundaries when swiping left
    ✓ should not swipe out of the boundaries when swiping right
    ✓ should trigger events
    ✓ should shrink if another swipe item active
    ✓ should do nothing if active the same swipe item
    ✓ should call refresh if the btns prop has changed
    ✓ should use default props if do not pass any prop

  Switch
    ✓ use
    ✓ should render correct contents
    ✓ should toggle v-model value

  Textarea.vue
    ✓ use
    ✓ should render correct contents
    ✓ should not expand when blur
    ✓ should expand when focus, fold when blur
    ✓ should has remain when focus
    ✓ should change value
    ✓ should support more native props

  TimePicker
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents - no showNow
    ✓ should trigger events
    ✓ should add warn log when sigle is true

  Tip.vue
    ✓ use
    ✓ should render correct contents
    ✓ should render correct contents with offset[X]
    ✓ should be hidden after clicked content
    ✓ should be hidden after clicked close button

  Toast
    Toast.vue
      ✓ use
      ✓ should render correct contents - no type
      ✓ should render correct contents - time 0
      ✓ should render correct contents - with type
    Toast API
      ✓ $createToast API
      ✓ should trigger correct event

  Upload.vue
    ✓ use
    ✓ should render correct contents
    ✓ should add files & upload
    ✓ should remove file
    ✓ should start & pause upload
    ✓ should retry upload
    ✓ should trigger events

  Validator
    Validator.vue
      ✓ use
      ✗ should render correct contents - invalid
	AssertionError: expected 'cube-validator cube-validator_validating' to include 'cube-validator_invalid' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

      ✓ should reset correctly
      ✓ should not validate when disabled
ERROR LOG: '[Vue warn]: Error in nextTick: "AssertionError: expected 'cube-validator' to include 'cube-validator_validating'"

found in

---> <CubeValidator> at /home/travis/build/didi/cube-ui/src/components/validator/validator.vue
       <Root>'
ERROR LOG: AssertionError{message: 'expected 'cube-validator' to include 'cube-validator_validating'', showDiff: false, actual: 'cube-validator', expected: undefined, stack: undefined, line: 210, sourceURL: 'http://localhost:9876/absolute/home/travis/build/didi/cube-ui/node_modules/chai/chai.js?ab7cf506d9d77c111c878b1e10b7f25348630760'}
      ✗ should trigger events
	AssertionError: expected 'cube-validator cube-validator_invalid' to include 'cube-validator_valid' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

    rules
      ✓ should be valid - no rule
      ✓ should be valid - unstated rule
      ✓ should be invalid - require: array
      ✓ should be invalid - type: string
      ✓ should be valid - type: string
      ✓ should be invalid - type: number
      ✓ should be valid - type: number
      ✓ should be invalid - type: array
      ✓ should be valid - type: array
      ✓ should be invalid - type: date
      ✓ should be valid - type: date
      ✓ should be invalid - type: email
      ✓ should be valid - type: email
      ✓ should be invalid - type: tel
      ✓ should be valid - type: tel
      ✓ should be invalid - type: url
      ✓ should be valid - type: url
      ✓ should be invalid - min: string
      ✓ should be valid - min: number
      ✓ should be valid - max: string
      ✓ should be invalid - max: number
      ✓ should be valid - len: string
      ✓ should be invalid - len: number
      ✓ should be invalid - notWhitespace
      ✓ should be invalid - pattern
      ✓ should be invalid - custom
    methods
      ✓ should add customized rule and message
      ✓ should rewrite raw type
      ✓ should change the language of default message

PhantomJS 2.1.1 (Linux 0.0.0): Executed 202 of 202 (2 FAILED) (34.836 secs / NaN secs)
TOTAL: 2 FAILED, 200 SUCCESS


1) should render correct contents - invalid
     Validator Validator.vue
     AssertionError: expected 'cube-validator cube-validator_validating' to include 'cube-validator_invalid' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)

2) should trigger events
     Validator Validator.vue
     AssertionError: expected 'cube-validator cube-validator_invalid' to include 'cube-validator_valid' (/home/travis/build/didi/cube-ui/node_modules/chai/chai.js:210)



=============================== Coverage summary ===============================
Statements   : 95.37% ( 2243/2352 )
Branches     : 82.85% ( 923/1114 )
Functions    : 95.24% ( 220/231 )
Lines        : 95.44% ( 2237/2344 )
================================================================================
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  TypeError: null is not an object (evaluating 'vm.validating')
  at webpack:///test/unit/specs/validator.spec.js:185:8 <- index.js:119279

PhantomJS 2.1.1 (Linux 0.0.0): Executed 202 of 202 (2 FAILED) ERROR (35.232 secs / NaN secs)


=============================== Coverage summary ===============================
Statements   : 95.37% ( 2243/2352 )
Branches     : 82.85% ( 923/1114 )
Functions    : 95.24% ( 220/231 )
Lines        : 95.44% ( 2237/2344 )
================================================================================

npm ERR! Linux 4.14.12-041412-generic
npm ERR! argv "/home/travis/.nvm/versions/node/v6.14.1/bin/node" "/home/travis/.nvm/versions/node/v6.14.1/bin/npm" "run" "unit"
npm ERR! node v6.14.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! cube-ui@1.8.0 unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the cube-ui@1.8.0 unit script 'cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cube-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs cube-ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls cube-ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/travis/build/didi/cube-ui/npm-debug.log
npm ERR! Test failed.  See above for more details.

@dolymood dolymood merged commit cbbc3e9 into dev Apr 25, 2018
@dolymood dolymood deleted the feat-pop-v-model branch May 16, 2018 06:26
hu0950 pushed a commit that referenced this pull request Nov 1, 2019
* feat(popups): use v-model to toggle

* [optimize]: abstract visibilityMixin and popupMixin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants