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

Commit f1866fe

Browse files
committed
fixup! add another expectation
1 parent 1712e3c commit f1866fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ng/directive/selectSpec.js

+4
Original file line numberDiff line numberDiff line change
@@ -2339,11 +2339,15 @@ describe('select', function() {
23392339
scope.options = [{ name: 'B'}, { name: 'C'}, { name: 'D'}];
23402340
});
23412341

2342+
var previouslySelectedOptionElement = optionElements[1];
23422343
optionElements = element.find('option');
23432344
expect(optionElements.length).toEqual(3);
2345+
23442346
expect(optionElements[0].value).toBe('B');
23452347
expect(optionElements[0]).toBeMarkedAsSelected();
23462348
expect(scope.obj.value).toBe('B');
2349+
// Ensure the assumption that the element is re-created is true
2350+
expect(previouslySelectedOptionElement).not.toBe(optionElements[0]);
23472351
});
23482352

23492353
});

0 commit comments

Comments
 (0)