Skip to content
Extraits de code Groupes Projets
search-spec.js 582 octets
Newer Older
  • Learn to ignore specific revisions
  • /*   Copyright (c) 2010-2011, Diaspora Inc.  This file is
    
     *   licensed under the Affero General Public License version 3 or later.  See
     *   the COPYRIGHT file.
     */
    
      describe("runDelayedSearch", function() {
        beforeEach( function(){
          spec.loadFixture('empty_people_search');
    
        });
    
        it('inserts contact html', function(){
    
    Maxwell Salzberg's avatar
    Maxwell Salzberg a validé
          List.handleSearchRefresh( { count:1, search_html: "<div class='testing_insert_div'>hello</div>" } );
    
          expect($(".testing_insert_div").text()).toEqual("hello");