mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Upgrade QUnit to latest version
This commit is contained in:
parent
8ae445766f
commit
cc525b1a8d
145 changed files with 7569 additions and 6763 deletions
|
@ -3,7 +3,7 @@ moduleForComponent('combo-box', {integration: true});
|
|||
|
||||
componentTest('with objects', {
|
||||
template: '{{combo-box content=items value=value}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('items', [{id: 1, name: 'hello'}, {id: 2, name: 'world'}]);
|
||||
},
|
||||
|
||||
|
@ -17,7 +17,7 @@ componentTest('with objects', {
|
|||
|
||||
componentTest('with objects and valueAttribute', {
|
||||
template: '{{combo-box content=items valueAttribute="value"}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('items', [{value: 0, name: 'hello'}, {value: 1, name: 'world'}]);
|
||||
},
|
||||
|
||||
|
@ -30,7 +30,7 @@ componentTest('with objects and valueAttribute', {
|
|||
|
||||
componentTest('with an array', {
|
||||
template: '{{combo-box content=items value=value}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('items', ['evil', 'trout', 'hat']);
|
||||
},
|
||||
|
||||
|
@ -44,7 +44,7 @@ componentTest('with an array', {
|
|||
|
||||
componentTest('with none', {
|
||||
template: '{{combo-box content=items none="test.none" value=value}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
I18n.translations[I18n.locale].js.test = {none: 'none'};
|
||||
this.set('items', ['evil', 'trout', 'hat']);
|
||||
},
|
||||
|
@ -59,7 +59,7 @@ componentTest('with none', {
|
|||
|
||||
componentTest('with Object none', {
|
||||
template: '{{combo-box content=items none=none value=value selected="something"}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('none', { id: 'something', name: 'none' });
|
||||
this.set('items', ['evil', 'trout', 'hat']);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue