From 2f67550ef641efd08ac042e85256ebdc0a239002 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Thu, 26 Dec 2013 19:43:01 +0100 Subject: [PATCH] test(typeahead): clean-up after tests --- src/typeahead/test/typeahead.spec.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/typeahead/test/typeahead.spec.js b/src/typeahead/test/typeahead.spec.js index 5486f65045..149eb0f92c 100644 --- a/src/typeahead/test/typeahead.spec.js +++ b/src/typeahead/test/typeahead.spec.js @@ -78,13 +78,17 @@ describe('typeahead tests', function () { var liEls = findMatches(this.actual); this.message = function () { - return "Expected '" + angular.mock.dump(this.actual) + "' to be opened."; + return "Expected '" + this.actual + "' to be opened."; }; return typeaheadEl.css('display') === 'block' && liEls.length === noOfMatches && $(liEls[activeIdx]).hasClass('active'); } }); }); + afterEach(function () { + findDropDown($document.find('body')).remove(); + }); + //coarse grained, "integration" tests describe('initial state and model changes', function () { @@ -582,12 +586,11 @@ describe('typeahead tests', function () { }); - xdescribe('append to body', function () { + describe('append to body', function () { it('append typeahead results to body', function () { var element = prepareInputEl("
"); changeInputValueTo(element, 'ba'); expect($document.find('body')).toBeOpenWithActive(2, 0); - }); });