 
       $timeout.flush()
 
-      menuEl = $(".mac-menu")
-
-      expect(menuEl.hasClass "test").toBeTruthy()
-      expect(menuEl.hasClass "hello").toBeFalsy()
+      menuEl = document.querySelector(".mac-menu")
+
+      expect(menuEl.className.indexOf "test").not.toBe -1
+      expect(menuEl.className.indexOf "hello").toBe -1
 
     it "should not have ng-class on menu element", ->
       $rootScope.source  = data

      $rootScope.$digest()

      changeInputValue element, "f"
      expect($(".mac-menu-item").text()).toBe "foo"

  describe "updateItem", ->
    it "should convert key to label", ->

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

      expect(document.querySelector(".mac-menu-item").innerText).toBe "foo"

    it "should use local label, value object", ->
      $rootScope.source = [
