Skip to content

Commit 61a3a1b

Browse files
committed
(test) - load search response before spell check response
1 parent 35d6154 commit 61a3a1b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/search/spellCheckZeroResult.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
describe('SpellCheck - Zero results', function () {
22

33
before(function(done){
4-
5-
this.spellCheckTest = fixture.load('mock/spellCheckWithZeroResults.json');
64
this.searchTest = fixture.load('mock/searchTestResponse.json');
5+
this.spellCheckTest = fixture.load('mock/spellCheckWithZeroResults.json');
76
//setup document to hold search results
87
document.body.innerHTML = __html__['index.html'];
98
//initialize search
@@ -23,7 +22,7 @@ describe('SpellCheck - Zero results', function () {
2322
this.stub.restore();
2423
fixture.cleanup();
2524
});
26-
25+
2726
it('Should display didYouMean', function(){
2827
expect(jQuery(this.searchobj.options.spellCheck).text())
2928
.to.equal('Did you mean : '+ this.spellCheckTest

0 commit comments

Comments
 (0)