mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 17:51:03 +08:00
FIX: disable by default limitMatches
This commit is contained in:
@ -145,3 +145,17 @@ componentTest('interactions', {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
componentTest('with limitMatches', {
|
||||
template: '{{multi-select content=content limitMatches=2}}',
|
||||
|
||||
beforeEach() {
|
||||
this.set('content', ['sam', 'jeff', 'neil']);
|
||||
},
|
||||
|
||||
test(assert) {
|
||||
this.get('subject').expand();
|
||||
|
||||
andThen(() => assert.equal(this.get('subject').el().find(".select-kit-row").length, 2));
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user