@@ -27,7 +27,7 @@ QUnit.module('search control');
27
27
QUnit . test ( 'Search for “about”' , function ( assert ) {
28
28
var done = assert . async ( ) ;
29
29
search . searchEngineSearch ( 'about' ) . then ( function ( results ) {
30
- assert . equal ( results . length > 0 , true , 'got results ' ) ;
30
+ assert . equal ( results . length > 1 , true , 'got more than 1 result ' ) ;
31
31
assert . equal ( indexOfPageInResults ( 'about' , results ) , 0 , 'first result is the About page' ) ;
32
32
done ( ) ;
33
33
} ) ;
@@ -36,7 +36,7 @@ QUnit.test('Search for “about”', function(assert) {
36
36
QUnit . test ( 'Search for “can-component”' , function ( assert ) {
37
37
var done = assert . async ( ) ;
38
38
search . searchEngineSearch ( 'can-component' ) . then ( function ( results ) {
39
- assert . equal ( results . length > 0 , true , 'got results ' ) ;
39
+ assert . equal ( results . length > 1 , true , 'got more than 1 result ' ) ;
40
40
assert . equal ( indexOfPageInResults ( 'can-component' , results ) , 0 , 'first result is the can-component page' ) ;
41
41
done ( ) ;
42
42
} ) ;
@@ -45,7 +45,7 @@ QUnit.test('Search for “can-component”', function(assert) {
45
45
QUnit . test ( 'Search for “can-connect”' , function ( assert ) {
46
46
var done = assert . async ( ) ;
47
47
search . searchEngineSearch ( 'can-connect' ) . then ( function ( results ) {
48
- assert . equal ( results . length > 0 , true , 'got results ' ) ;
48
+ assert . equal ( results . length > 1 , true , 'got more than 1 result ' ) ;
49
49
assert . equal ( indexOfPageInResults ( 'can-connect' , results ) , 0 , 'first result is the can-connect page' ) ;
50
50
done ( ) ;
51
51
} ) ;
@@ -54,15 +54,15 @@ QUnit.test('Search for “can-connect”', function(assert) {
54
54
QUnit . test ( 'Search for “helpers/' , function ( assert ) {
55
55
var done = assert . async ( ) ;
56
56
search . searchEngineSearch ( 'helpers/' ) . then ( function ( results ) {
57
- assert . equal ( results . length > 0 , true , 'got results ' ) ;
57
+ assert . equal ( results . length > 1 , true , 'got more than 1 result ' ) ;
58
58
done ( ) ;
59
59
} ) ;
60
60
} ) ;
61
61
62
62
QUnit . test ( 'Search for “Live Binding”' , function ( assert ) {
63
63
var done = assert . async ( ) ;
64
64
search . searchEngineSearch ( 'Live Binding' ) . then ( function ( results ) {
65
- assert . equal ( results . length > 0 , true , 'got results ' ) ;
65
+ assert . equal ( results . length > 1 , true , 'got more than 1 result ' ) ;
66
66
assert . equal ( indexOfPageInResults ( 'can-stache.Binding' , results ) < 2 , true , 'first result is the can-stache Live Binding page' ) ;
67
67
done ( ) ;
68
68
} ) ;
@@ -80,7 +80,7 @@ QUnit.test('Search for “Play”', function(assert) {
80
80
QUnit . test ( 'Search for “stache”' , function ( assert ) {
81
81
var done = assert . async ( ) ;
82
82
search . searchEngineSearch ( 'stache' ) . then ( function ( results ) {
83
- assert . equal ( results . length > 0 , true , 'got results ' ) ;
83
+ assert . equal ( results . length > 1 , true , 'got more than 1 result ' ) ;
84
84
assert . equal ( indexOfPageInResults ( 'can-stache' , results ) , 0 , 'first result is the can-stache page' ) ;
85
85
done ( ) ;
86
86
} ) ;
@@ -98,7 +98,7 @@ QUnit.test('Search for “%special”', function(assert) {
98
98
QUnit . test ( 'Search for “define/map”' , function ( assert ) {
99
99
var done = assert . async ( ) ;
100
100
search . searchEngineSearch ( 'define/map' ) . then ( function ( results ) {
101
- assert . equal ( results . length > 0 , true , 'got results ' ) ;
101
+ assert . equal ( results . length > 1 , true , 'got more than 1 result ' ) ;
102
102
assert . equal ( indexOfPageInResults ( 'can-define/map/map' , results ) , 0 , 'first result is the can-define/map/map page' ) ;
103
103
done ( ) ;
104
104
} ) ;
0 commit comments