2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: allows select-kit to search by null value

This commit is contained in:
Joffrey JAFFEUX 2017-12-01 20:02:00 +01:00 committed by GitHub
parent 29bdf35977
commit dbadebacd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View file

@ -423,3 +423,20 @@ componentTest('with nameChanges', {
});
}
});
componentTest('with null value', {
template: '{{single-select content=content}}',
beforeEach() {
this.set("content", [{ name: "robin" }]);
},
test(assert) {
expandSelectKit();
andThen(() => {
assert.equal(selectKit().header.name(), "robin");
});
}
});