@@ -4,25 +4,25 @@ describe('removeFromArray', () => {
4
4
test ( 'removes a single value' , ( ) => {
5
5
expect ( removeFromArray ( [ 1 , 2 , 3 , 4 ] , 3 ) ) . toEqual ( [ 1 , 2 , 4 ] ) ;
6
6
} ) ;
7
- test . skip ( 'removes multiple values' , ( ) => {
7
+ test ( 'removes multiple values' , ( ) => {
8
8
expect ( removeFromArray ( [ 1 , 2 , 3 , 4 ] , 3 , 2 ) ) . toEqual ( [ 1 , 4 ] ) ;
9
9
} ) ;
10
- test . skip ( 'removes multiple of the same value' , ( ) => {
10
+ test ( 'removes multiple of the same value' , ( ) => {
11
11
expect ( removeFromArray ( [ 1 , 2 , 2 , 3 ] , 2 ) ) . toEqual ( [ 1 , 3 ] ) ;
12
12
} ) ;
13
- test . skip ( 'ignores non present values' , ( ) => {
13
+ test ( 'ignores non present values' , ( ) => {
14
14
expect ( removeFromArray ( [ 1 , 2 , 3 , 4 ] , 7 , "tacos" ) ) . toEqual ( [ 1 , 2 , 3 , 4 ] ) ;
15
15
} ) ;
16
- test . skip ( 'ignores non present values, but still works' , ( ) => {
16
+ test ( 'ignores non present values, but still works' , ( ) => {
17
17
expect ( removeFromArray ( [ 1 , 2 , 3 , 4 ] , 7 , 2 ) ) . toEqual ( [ 1 , 3 , 4 ] ) ;
18
18
} ) ;
19
- test . skip ( 'can remove all values' , ( ) => {
19
+ test ( 'can remove all values' , ( ) => {
20
20
expect ( removeFromArray ( [ 1 , 2 , 3 , 4 ] , 1 , 2 , 3 , 4 ) ) . toEqual ( [ ] ) ;
21
21
} ) ;
22
- test . skip ( 'works with strings' , ( ) => {
22
+ test ( 'works with strings' , ( ) => {
23
23
expect ( removeFromArray ( [ "hey" , 2 , 3 , "ho" ] , "hey" , 3 ) ). toEqual ( [ 2 , "ho" ] ) ;
24
24
} ) ;
25
- test . skip ( 'only removes same type' , ( ) => {
25
+ test ( 'only removes same type' , ( ) => {
26
26
expect ( removeFromArray ( [ 1 , 2 , 3 ] , "1" , 3 ) ) . toEqual ( [ 1 , 2 ] ) ;
27
27
} ) ;
28
28
} ) ;
0 commit comments