@@ -2,64 +2,70 @@ import 'locus'
22import { expect } from 'chai'
33describe ( 'filter tests' , ( ) => {
44
5- it . skip ( 'shouldpick the even numbers ' , ( ) => {
5+ it . skip ( 'shouldreturn a new array of only even numbers ' , ( ) => {
66const numbers = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ] ;
77
88// your code goes here
99
1010expect ( results ) . to . deep . equal ( [ 2 , 4 , 6 , 8 , 10 ] ) ;
1111} ) ;
1212
13- it . skip ( 'shouldpick the odd numbers ' , ( ) => {
13+ it . skip ( 'shouldreturn a new array of only odd numbers ' , ( ) => {
1414const numbers = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ] ;
1515
1616// your code goes here
1717
1818expect ( results ) . to . deep . equal ( [ 1 , 3 , 5 , 7 , 9 ] ) ;
1919} ) ;
2020
21- it . skip ( 'shouldpick words with three characters' , ( ) => {
21+ it . skip ( 'shouldreturn a new array of words with three characters' , ( ) => {
2222const words = [ "pill" , "bad" , "finger" , "cat" , "blue" , "dog" , "table" , "red" ] ;
2323
2424// your code goes here
2525
2626expect ( results ) . to . deep . equal ( [ "bad" , "cat" , "dog" , "red" ] ) ;
2727} ) ;
2828
29- it . skip ( 'shouldpick arrays only ' , ( ) => {
29+ it . skip ( 'shouldreturn a new array of arrays ' , ( ) => {
3030const elements = [ "CAT" , [ "dog" ] , 23 , [ 56 , 3 , 8 ] , "AIMLESS" , 43 , "butter" ] ;
3131
3232// your code goes here
3333
3434expect ( results ) . to . deep . equal ( [ [ "dog" ] , [ 56 , 3 , 8 ] ] ) ;
3535} ) ;
3636
37- it . skip ( 'should remove specific array from object' , ( ) => {
38- const human = { name :'yung-jhun' , songs :[ [ 'cool song 1' , 50 ] , [ 'cool song 2' , 100 ] , [ 'cool song 3' , 90 ] ] } ;
37+ it . skip ( 'should a new object with cool song 2 removed' , ( ) => {
38+ const human = {
39+ name :'yung-jhun' , songs :[ [ 'cool song 1' , 50 ] ,
40+ [ 'cool song 2' , 100 ] ,
41+ [ 'cool song 3' , 90 ] ]
42+ } ;
43+
3944const saying = 'cool song 2' ;
4045
4146//your code goes here
4247
43- expect ( human . songs ) . to . deep . equal ( [ [ 'cool song 1' , 50 ] , [ 'cool song 3' , 90 ] ] ) ;
48+ expect ( human . songs ) . to . deep . equal ( [ [ 'cool song 1' , 50 ] ,
49+ [ 'cool song 3' , 90 ] ] ) ;
4450} ) ;
4551
46- it . skip ( 'should filter based off of strings from user ' , ( ) => {
52+ it . skip ( 'should filtermessage based off of strings from user ' , ( ) => {
4753const userString = 'su' ;
4854const messages = [ { user :'louisa' , message :'haaaaa' } ,
4955{ user :'yung-jhun' , message :'kewl dude' } ,
5056{ user :'alter-nate' , message :'suh kewl' } ,
5157{ user :'meeka' , message :'adfasuhlkj' } ,
52- { user :'robbie' , message :'imsuper loud' } ] ;
58+ { user :'robbie' , message :'im loud' } ] ;
5359
5460// your code goes here
5561
5662
5763expect ( results ) . to . deep . equal ( [ { user :'alter-nate' , message :'suh kewl' } ,
5864{ user :'meeka' , message :'adfasuhlkj' } ,
59- { user :'robbie' , message :'imsuper loud' } ] ) ;
65+ { user :'robbie' , message :'im loud' } ] ) ;
6066} ) ;
6167
62- it . skip ( 'should return the correct ids' , ( ) => {
68+ it . skip ( 'should returna new array with the correct ids' , ( ) => {
6369const data = [ { account :'person 1' , id :'00112' } ,
6470{ account :'person 2' , id :'00045' } ,
6571{ account :'person 3' , id :'12309' } ,