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

Commit d077966

Browse files
committed
test(ngOptions): clarify a test description
1 parent 0df4ff8 commit d077966

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
@@ -2038,7 +2038,9 @@ describe('ngOptions', function() {
20382038
expect(option.text()).toBe('is blank');
20392039
});
20402040

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

0 commit comments

Comments
 (0)