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

Commit 03a4a96

Browse files
committed
test(ngOptions): clarify a test description
1 parent 655c52a commit 03a4a96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/ng/directive/ngOptionsSpec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,9 @@ describe('ngOptions', function() {
20292029
expect(option.text()).toBe('is blank');
20302030
});
20312031

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

0 commit comments

Comments
 (0)