Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
riophae committed May 4, 2018
1 parent 683f9e8 commit 9b513f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ module.exports = {
'no-unknown-animations': null,
'font-weight-notation': null,
'no-descending-specificity': null,
'selector-max-compound-selectors': null,
},
}
4 changes: 2 additions & 2 deletions test/unit/specs/DynamicalLoading.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ describe('Dynamical Loading', () => {
const menu = vm.$refs.menu
expect(vm.loadingRootOptions).toBe(true)
// should show a loading tip
expect(menu.firstElementChild.className).toBe('vue-treeselect__loading-tip')
expect(menu.firstElementChild.className).toEqual(jasmine.stringMatching('vue-treeselect__loading-tip'))
expect(menu.firstElementChild.textContent.trim()).toBe('Loading...')

await sleep(DELAY)
Expand Down Expand Up @@ -625,7 +625,7 @@ describe('Dynamical Loading', () => {
expect(vm.loadingRootOptionsError).toBe(ERROR_MESSAGE)
expect(vm.rootOptionsLoaded).toBe(false)
menu = vm.$refs.menu
expect(menu.firstElementChild.className).toBe('vue-treeselect__error-tip')
expect(menu.firstElementChild.className).toEqual(jasmine.stringMatching('vue-treeselect__error-tip'))
expect(menu.querySelector('.vue-treeselect__error-tip-text').textContent.includes(ERROR_MESSAGE)).toBe(true)

// 2nd try
Expand Down

0 comments on commit 9b513f3

Please sign in to comment.