1
- import { speeds , airSpeedVelocity , plumages } from './index' ;
1
+ import { speeds , plumages } from './index' ;
2
2
3
3
describe ( 'plumages' , ( ) => {
4
4
it ( 'should return a map containing the plumage of all birds in the list' , ( ) => {
@@ -23,38 +23,6 @@ describe('plumages', () => {
23
23
} ) ;
24
24
} ) ;
25
25
26
- describe ( 'airSpeedVelocity' , ( ) => {
27
- it ( 'should return 35 for EuropeanSwallow' , ( ) => {
28
- const bird = { type : 'EuropeanSwallow' } ;
29
- expect ( airSpeedVelocity ( bird ) ) . toBe ( 35 ) ;
30
- } ) ;
31
-
32
- it ( 'should return 38 for AfricanSwallow with 1 coconut' , ( ) => {
33
- const bird = { type : 'AfricanSwallow' , numberOfCoconuts : 1 } ;
34
- expect ( airSpeedVelocity ( bird ) ) . toBe ( 38 ) ;
35
- } ) ;
36
-
37
- it ( 'should return 36 for AfricanSwallow with 2 coconuts' , ( ) => {
38
- const bird = { type : 'AfricanSwallow' , numberOfCoconuts : 2 } ;
39
- expect ( airSpeedVelocity ( bird ) ) . toBe ( 36 ) ;
40
- } ) ;
41
-
42
- it ( 'should return 0 for nailed NorwegianBlueParrot' , ( ) => {
43
- const bird = { type : 'NorwegianBlueParrot' , isNailed : true } ;
44
- expect ( airSpeedVelocity ( bird ) ) . toBe ( 0 ) ;
45
- } ) ;
46
-
47
- it ( 'should return 10 for NorwegianBlueParrot with voltage 0' , ( ) => {
48
- const bird = { type : 'NorwegianBlueParrot' , voltage : 0 } ;
49
- expect ( airSpeedVelocity ( bird ) ) . toBe ( 10 ) ;
50
- } ) ;
51
-
52
- it ( 'should return 20 for NorwegianBlueParrot with voltage 100' , ( ) => {
53
- const bird = { type : 'NorwegianBlueParrot' , voltage : 100 } ;
54
- expect ( airSpeedVelocity ( bird ) ) . toBe ( 20 ) ;
55
- } ) ;
56
- } ) ;
57
-
58
26
describe ( 'speeds' , ( ) => {
59
27
it ( 'should return a map containing the air speed velocity of all birds in the list' , ( ) => {
60
28
const birds = [
0 commit comments