Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
haixiangyan committed Jul 13, 2019
1 parent 197c4f9 commit ae3c922
Show file tree
Hide file tree
Showing 6 changed files with 15,256 additions and 2,613 deletions.
12,531 changes: 12,531 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
"chai": "^4.2.0",
"cross-env": "^5.2.0",
"karma-coverage": "^1.1.2",
"karma-sinon": "^1.0.5",
"karma-sinon-chai": "^2.0.2",
"mocha": "^5.0.5",
"node-sass": "^4.11.0",
"sass-loader": "^7.1.0",
"sinon": "^7.2.2",
"sinon": "^7.3.2",
"sinon-chai": "^3.3.0",
"vue-cli-plugin-unit-karma": "^0.5.0",
"vue-template-compiler": "^2.5.21"
}
}
2 changes: 1 addition & 1 deletion src/assets/icons/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/unit/Hero/OwHero.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('OwHero.vue', () => {
}
})

expect(OwHeroWrapper.find('.ow-hero-avatar').attributes().style).to.equal('background-image: url("https://d1u1mce87gyfbn.cloudfront.net/hero/hanzo/icon-portrait.png");');
expect(OwHeroWrapper.find('.ow-hero-avatar').attributes().style).to.equal('background-image: url(https://d1u1mce87gyfbn.cloudfront.net/hero/hanzo/icon-portrait.png);');
})

it('receives size props', () => {
Expand Down Expand Up @@ -46,6 +46,6 @@ describe('OwHero.vue', () => {
url: '/xxx'
}
})
expect(OwHeroWrapper.find('.ow-hero-avatar').attributes().style).to.equal('background-image: url("/xxx");');
expect(OwHeroWrapper.find('.ow-hero-avatar').attributes().style).to.equal('background-image: url(/xxx);');
})
})
1 change: 1 addition & 0 deletions tests/unit/Input/OwInput.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {expect} from 'chai'
import {shallowMount} from '@vue/test-utils'
import OwInput from '../../../src/components/Input/OwInput.vue'
import {testProperty} from "../../utils"
import sinon from 'sinon'

const testData = {
values: ['text'],
Expand Down
Loading

0 comments on commit ae3c922

Please sign in to comment.