Skip to content

Commit 5d0ca36

Browse files
test(typeahead): clean-up after tests
1 parent 444c488 commit 5d0ca36

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/typeahead/test/typeahead.spec.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,17 @@ describe('typeahead tests', function () {
7878
var liEls = findMatches(this.actual);
7979

8080
this.message = function () {
81-
return "Expected '" + angular.mock.dump(this.actual) + "' to be opened.";
81+
return "Expected '" + this.actual + "' to be opened.";
8282
};
8383
return typeaheadEl.css('display') === 'block' && liEls.length === noOfMatches && $(liEls[activeIdx]).hasClass('active');
8484
}
8585
});
8686
});
8787

88+
afterEach(function () {
89+
findDropDown($document.find('body')).remove();
90+
});
91+
8892
//coarse grained, "integration" tests
8993
describe('initial state and model changes', function () {
9094

@@ -582,12 +586,11 @@ describe('typeahead tests', function () {
582586

583587
});
584588

585-
xdescribe('append to body', function () {
589+
describe('append to body', function () {
586590
it('append typeahead results to body', function () {
587591
var element = prepareInputEl("<div><input ng-model='result' typeahead='item for item in source | filter:$viewValue' typeahead-append-to-body='true'></div>");
588592
changeInputValueTo(element, 'ba');
589593
expect($document.find('body')).toBeOpenWithActive(2, 0);
590-
591594
});
592595
});
593596

0 commit comments

Comments
 (0)