@@ -12,7 +12,7 @@ describe('Getting Information', function() {
1212
1313 describe ( 'Browsing' , function ( ) {
1414 it ( 'should get initial repos' , function ( done ) {
15- this . timeout ( 5000 )
15+ this . timeout ( 3000 )
1616 const filters = {
1717 agencies : [ ] ,
1818 languages : [ ] ,
@@ -29,18 +29,18 @@ describe('Getting Information', function() {
2929 } )
3030
3131 describe ( 'Searching' , function ( ) {
32- it ( 'should get suggestions for water' , function ( done ) {
33- this . timeout ( 50000 ) ;
32+ it ( 'should get repos about water' , function ( done ) {
33+ this . timeout ( 3000 ) ;
3434 client . search ( "water" ) . then ( searchResults => {
3535 const repos = searchResults . repos ;
3636 expect ( repos . length ) . to . be . above ( 2 ) ;
37- expect ( repos [ 0 ] . name . toLowerCase ( ) ) . to . have . string ( 'water' ) ;
37+ expect ( repos [ 0 ] . description . toLowerCase ( ) ) . to . have . string ( 'water' ) ;
3838 done ( ) ;
3939 } ) ;
4040 } ) ;
4141
4242 it ( 'should filter agencies properly by language' , function ( done ) {
43- this . timeout ( 50000 ) ;
43+ this . timeout ( 3000 ) ;
4444 client . search ( "water" , { languages : [ 'C' ] } ) . then ( searchResults => {
4545 const repos = searchResults . repos || searchResults . data ;
4646 const languages = repos . map ( repo => repo . languages [ 0 ] )
@@ -51,7 +51,7 @@ describe('Getting Information', function() {
5151 } ) ;
5252
5353 it ( 'should filter agencies properly by agency' , function ( done ) {
54- this . timeout ( 50000 ) ;
54+ this . timeout ( 3000 ) ;
5555 const filters = {
5656 languages : [ 'C' ] ,
5757 licenses : [ 'Creative Commons Zero (CC0)' ]
@@ -67,7 +67,7 @@ describe('Getting Information', function() {
6767 } ) ;
6868 describe ( 'Autocompleting' , function ( ) {
6969 it ( 'should get suggestions for National' , function ( done ) {
70- this . timeout ( 50000 ) ;
70+ this . timeout ( 3000 ) ;
7171 client . suggest ( "National" ) . then ( searchResults => {
7272 expect ( searchResults . length ) . to . be . above ( 2 ) ;
7373 expect ( searchResults [ 0 ] . toLowerCase ( ) ) . to . have . string ( 'national' ) ;
@@ -78,7 +78,7 @@ describe('Getting Information', function() {
7878
7979 describe ( "Getting Repositories for an Agency" , function ( ) {
8080 it ( "should get correct results" , function ( done ) {
81- this . timeout ( 50000 ) ;
81+ this . timeout ( 3000 ) ;
8282 client . getAgencyRepos ( "USDA" ) . then ( data => {
8383 expect ( data . repos . length ) . to . be . above ( 2 ) ;
8484 done ( ) ;
@@ -88,7 +88,7 @@ describe('Getting Information', function() {
8888
8989 describe ( "Getting Individual Repositories" , function ( ) {
9090 it ( "should get correct result" , function ( done ) {
91- this . timeout ( 50000 ) ;
91+ this . timeout ( 3000 ) ;
9292 let repoID = "doe_sandia_national_laboratories_snl_water_network_tool_for_resilience_v_1_0" ;
9393 client . getRepoById ( repoID ) . then ( repo => {
9494 expect ( repo . repoID ) . to . equal ( repoID )
@@ -99,7 +99,7 @@ describe('Getting Information', function() {
9999
100100 describe ( "Getting Agencies" , function ( ) {
101101 it ( "should get all the agencies" , function ( done ) {
102- this . timeout ( 50000 ) ;
102+ this . timeout ( 3000 ) ;
103103 client . getAgencies ( 1000 ) . then ( agencies => {
104104 expect ( agencies . length ) . to . be . above ( 10 ) ;
105105 done ( ) ;
0 commit comments