[Autocomplete] Show warning icon if invalid option was typed

This commit is contained in:
Dhrubomoy Das Gupta
2017-06-21 22:35:32 -04:00
parent 504b2e1ecf
commit 307320b3ff
4 changed files with 17 additions and 0 deletions

View File

@ -53,6 +53,11 @@ define([
expect(mockScope.filteredOptions).toEqual(filteredOptions);
});
it("checks if invalid option was typed", function () {
mockScope.filterOptions('openmct');
expect(mockScope.invalidOption).toEqual(true);
});
it("fills input with given string", function () {
var str = "UTC";
mockScope.fillInput(str);