Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(select): allow select to work with empty values in nb-option #1282

Merged
merged 15 commits into from
Apr 18, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(select): select option with value
  • Loading branch information
yggg committed Apr 14, 2019
commit 6991ce41e8b9589a552a93e4b033a96359819020
2 changes: 1 addition & 1 deletion src/framework/theme/components/select/select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ describe('Component: NbSelectComponent', () => {
const testComponent = selectFixture.componentInstance;
selectFixture.detectChanges();

const optionToSelect = testComponent.options.last;
const optionToSelect = testComponent.options.find(o => o.value != null);
const optionSelectSpy = spyOn(optionToSelect, 'select').and.callThrough();

expect(optionToSelect.selected).toEqual(false);
Expand Down