Skip to content

Commit

Permalink
Fix the tests for #1185 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehumphries committed Apr 8, 2015
1 parent 05519ae commit 8812b61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/scripts/helpers/search_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ describe('search_form', function(){
it('default', function(){
searchForm().should.eql('<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form">' +
'<input type="search" name="q" results="0" class="search-form-input" placeholder="Search">' +
'<input type="hidden" name="q" value="site:http://hexo.io">' +
'<input type="hidden" name="sitesearch" value="http://hexo.io">' +
'</form>');
});

it('class', function(){
searchForm({class: 'foo'}).should.eql('<form action="//google.com/search" method="get" accept-charset="UTF-8" class="foo">' +
'<input type="search" name="q" results="0" class="foo-input" placeholder="Search">' +
'<input type="hidden" name="q" value="site:http://hexo.io">' +
'<input type="hidden" name="sitesearch" value="http://hexo.io">' +
'</form>');
});

it('text', function(){
searchForm({text: 'Find'}).should.eql('<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form">' +
'<input type="search" name="q" results="0" class="search-form-input" placeholder="Find">' +
'<input type="hidden" name="q" value="site:http://hexo.io">' +
'<input type="hidden" name="sitesearch" value="http://hexo.io">' +
'</form>');
});

it('button enabled', function(){
searchForm({button: true, text: 'Find'}).should.eql('<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form">' +
'<input type="search" name="q" results="0" class="search-form-input" placeholder="Find">' +
'<button type="submit" class="search-form-submit">Find</button>' +
'<input type="hidden" name="q" value="site:http://hexo.io">' +
'<input type="hidden" name="sitesearch" value="http://hexo.io">' +
'</form>');
});

it('button text', function(){
searchForm({button: 'Go', text: 'Find'}).should.eql('<form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form">' +
'<input type="search" name="q" results="0" class="search-form-input" placeholder="Find">' +
'<button type="submit" class="search-form-submit">Go</button>' +
'<input type="hidden" name="q" value="site:http://hexo.io">' +
'<input type="hidden" name="sitesearch" value="http://hexo.io">' +
'</form>');
});
});

0 comments on commit 8812b61

Please sign in to comment.