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

Commit a6e7b8d

Browse files
committed
fix(ngRequired): change test case to exptect invalid form incase invalid option (required = true)
1 parent b1946fd commit a6e7b8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/directive/ngOptionsSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2532,8 +2532,8 @@ describe('ngOptions', function() {
25322532
expect(scope.value).toBe(false);
25332533

25342534
scope.$apply('required = true');
2535-
expect(element).toBeValid();
2536-
expect(scope.value).toBe(false);
2535+
expect(element).toBeInvalid();
2536+
expect(scope.value).toBe(undefined);
25372537
});
25382538
});
25392539

0 commit comments

Comments
 (0)