File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ describe('HOF #1', function() {
14
14
catch ( e ) {
15
15
console . log ( e )
16
16
}
17
- it ( 'should use Array.map' , function ( ) {
18
- expect ( hof . match ( / m a p / g) . length ) . to . equal ( 2 )
19
- } )
20
- it ( 'should be an array' , function ( ) {
17
+ it ( 'peopleNames should be an array' , function ( ) {
21
18
expect ( peopleNames ) . to . be . an ( 'array' )
22
19
} )
23
- it ( 'should contain the names of each person in the people array' , function ( ) {
20
+ it ( '.map should be called on `people`' , function ( ) {
21
+ expect ( hof . match ( / p e o p l e \. m a p / g) . length ) . to . be . at . least ( 1 )
22
+ } )
23
+ it ( 'peopleNames should contain the names of each person in the people array' , function ( ) {
24
24
let names = [ "Layla" , "Keanu" , "Jasmine" ]
25
25
expect (
26
26
peopleNames . every ( ( name , index ) => {
You can’t perform that action at this time.
0 commit comments