Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
test(ngOptions): clarify a test description
Browse files Browse the repository at this point in the history
  • Loading branch information
Narretz committed Sep 27, 2015
1 parent 655c52a commit 03a4a96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ng/directive/ngOptionsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,9 @@ describe('ngOptions', function() {
expect(option.text()).toBe('is blank');
});

it('should support option without a value attribute', function() {
it('should be ignored when it has no value attribute', function() {
// The option value is set to the textContent if there's no value attribute,
// so in that case it doesn't count as a blank option
createSingleSelect('<option>--select--</option>');
scope.$apply(function() {
scope.values = [{name: 'A'}, {name: 'B'}, {name: 'C'}];
Expand Down

0 comments on commit 03a4a96

Please sign in to comment.