       $rootScope.$digest()
 
       changeInputValue element, "f"
-      expect($(".mac-menu-item").text()).toBe "foo"
+      expect(document.querySelector(".mac-menu-item").innerText).toBe "foo"
 
     it "should evaulate expression on label attribute correctly", ->
       $rootScope.source = [


      $timeout.flush()

      menuEl = $(".mac-menu")
      expect(menuEl.attr("ng-class")).toBeFalsy()

      element = $compile("<mac-autocomplete ng-model='test' mac-autocomplete-source='source'></mac-autocomplete>") $rootScope
      $rootScope.$digest()

      menu = document.querySelector ".mac-menu"

      expect(menu).toBe null

      changeInputValue element, "f"
      $rootScope.$digest()

      $timeout.flush()

      menu = document.querySelector ".mac-menu"

      expect(menu.className.indexOf "visible").not.toBe -1

    it "should delay for 200ms", ->
      $rootScope.source = data
