@@ -27,7 +27,6 @@ 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' ) ;
31
30
assert . equal ( results . length > 1 , true , 'got more than 1 result' ) ;
32
31
assert . equal ( indexOfPageInResults ( 'about' , results ) , 0 , 'first result is the About page' ) ;
33
32
done ( ) ;
@@ -37,7 +36,6 @@ QUnit.test('Search for “about”', function(assert) {
37
36
QUnit . test ( 'Search for “can-component”' , function ( assert ) {
38
37
var done = assert . async ( ) ;
39
38
search . searchEngineSearch ( 'can-component' ) . then ( function ( results ) {
40
- assert . equal ( results . length > 0 , true , 'got results' ) ;
41
39
assert . equal ( results . length > 1 , true , 'got more than 1 result' ) ;
42
40
assert . equal ( indexOfPageInResults ( 'can-component' , results ) , 0 , 'first result is the can-component page' ) ;
43
41
done ( ) ;
@@ -47,7 +45,6 @@ QUnit.test('Search for “can-component”', function(assert) {
47
45
QUnit . test ( 'Search for “can-connect”' , function ( assert ) {
48
46
var done = assert . async ( ) ;
49
47
search . searchEngineSearch ( 'can-connect' ) . then ( function ( results ) {
50
- assert . equal ( results . length > 0 , true , 'got results' ) ;
51
48
assert . equal ( results . length > 1 , true , 'got more than 1 result' ) ;
52
49
assert . equal ( indexOfPageInResults ( 'can-connect' , results ) , 0 , 'first result is the can-connect page' ) ;
53
50
done ( ) ;
@@ -57,7 +54,6 @@ QUnit.test('Search for “can-connect”', function(assert) {
57
54
QUnit . test ( 'Search for “helpers/' , function ( assert ) {
58
55
var done = assert . async ( ) ;
59
56
search . searchEngineSearch ( 'helpers/' ) . then ( function ( results ) {
60
- assert . equal ( results . length > 0 , true , 'got results' ) ;
61
57
assert . equal ( results . length > 1 , true , 'got more than 1 result' ) ;
62
58
done ( ) ;
63
59
} ) ;
@@ -66,7 +62,6 @@ QUnit.test('Search for “helpers/', function(assert) {
66
62
QUnit . test ( 'Search for “Live Binding”' , function ( assert ) {
67
63
var done = assert . async ( ) ;
68
64
search . searchEngineSearch ( 'Live Binding' ) . then ( function ( results ) {
69
- assert . equal ( results . length > 0 , true , 'got results' ) ;
70
65
assert . equal ( results . length > 1 , true , 'got more than 1 result' ) ;
71
66
assert . equal ( indexOfPageInResults ( 'can-stache.Binding' , results ) < 2 , true , 'first result is the can-stache Live Binding page' ) ;
72
67
done ( ) ;
@@ -85,7 +80,6 @@ QUnit.test('Search for “Play”', function(assert) {
85
80
QUnit . test ( 'Search for “stache”' , function ( assert ) {
86
81
var done = assert . async ( ) ;
87
82
search . searchEngineSearch ( 'stache' ) . then ( function ( results ) {
88
- assert . equal ( results . length > 0 , true , 'got results' ) ;
89
83
assert . equal ( results . length > 1 , true , 'got more than 1 result' ) ;
90
84
assert . equal ( indexOfPageInResults ( 'can-stache' , results ) , 0 , 'first result is the can-stache page' ) ;
91
85
done ( ) ;
@@ -104,7 +98,6 @@ QUnit.test('Search for “%special”', function(assert) {
104
98
QUnit . test ( 'Search for “define/map”' , function ( assert ) {
105
99
var done = assert . async ( ) ;
106
100
search . searchEngineSearch ( 'define/map' ) . then ( function ( results ) {
107
- assert . equal ( results . length > 0 , true , 'got results' ) ;
108
101
assert . equal ( results . length > 1 , true , 'got more than 1 result' ) ;
109
102
assert . equal ( indexOfPageInResults ( 'can-define/map/map' , results ) , 0 , 'first result is the can-define/map/map page' ) ;
110
103
done ( ) ;
0 commit comments