@@ -83,10 +83,10 @@ describe('install route', function () {
8383 }
8484 if ( call === 2 ) {
8585 var choices = arg [ 0 ] . choices ;
86- assert . equal ( _ . where ( choices , { value : 'generator-foo' } ) . length , 1 ) ;
87- assert . equal ( _ . where ( choices , { value : 'generator-unicorn-1' } ) . length , 1 ) ;
88- assert . equal ( _ . where ( choices , { value : 'generator-unicorn' } ) . length , 0 ) ;
89- assert . equal ( _ . where ( choices , { value : 'generator-unrelated' } ) . length , 0 ) ;
86+ assert . equal ( _ . filter ( choices , { value : 'generator-foo' } ) . length , 1 ) ;
87+ assert . equal ( _ . filter ( choices , { value : 'generator-unicorn-1' } ) . length , 1 ) ;
88+ assert . equal ( _ . filter ( choices , { value : 'generator-unicorn' } ) . length , 0 ) ;
89+ assert . equal ( _ . filter ( choices , { value : 'generator-unrelated' } ) . length , 0 ) ;
9090 done ( ) ;
9191 }
9292
@@ -105,9 +105,9 @@ describe('install route', function () {
105105 }
106106 if ( call === 2 ) {
107107 var choices = arg [ 0 ] . choices ;
108- assert . equal ( _ . where ( choices , { value : 'generator-blacklist-1' } ) . length , 0 ) ;
109- assert . equal ( _ . where ( choices , { value : 'generator-blacklist-2' } ) . length , 0 ) ;
110- assert . equal ( _ . where ( choices , { value : 'generator-blacklist-3' } ) . length , 1 ) ;
108+ assert . equal ( _ . filter ( choices , { value : 'generator-blacklist-1' } ) . length , 0 ) ;
109+ assert . equal ( _ . filter ( choices , { value : 'generator-blacklist-2' } ) . length , 0 ) ;
110+ assert . equal ( _ . filter ( choices , { value : 'generator-blacklist-3' } ) . length , 1 ) ;
111111 done ( ) ;
112112 }
113113
@@ -202,7 +202,7 @@ describe('install route', function () {
202202
203203 if ( call === 2 ) {
204204 var choices = arg [ 0 ] . choices ;
205- assert . deepEqual ( _ . pluck ( choices , 'value' ) , [ 'install' , 'home' ] ) ;
205+ assert . deepEqual ( _ . map ( choices , 'value' ) , [ 'install' , 'home' ] ) ;
206206 done ( ) ;
207207 }
208208
0 commit comments