@@ -20,12 +20,12 @@ describe('lookupUtils', () => {
20
20
expect ( Object . keys ( lowercaseLookup ) ) . toEqual ( lowercasedExampleKeys ) ;
21
21
} ) ;
22
22
23
- test ( 'values should remain unchanged after lowercasing' , ( ) => {
23
+ test ( 'given a lookup with unique keys, values should remain unchanged after lowercasing' , ( ) => {
24
24
const originalValues = Object . values ( exampleLookup ) ;
25
25
expect ( Object . values ( lowercaseLookup ) ) . toEqual ( originalValues ) ;
26
26
} ) ;
27
27
28
- test ( '# of keys should stay the same' , ( ) => {
28
+ test ( 'given a lookup with unique keys, # of keys should stay the same' , ( ) => {
29
29
expect ( Object . keys ( lowercaseLookup ) . length ) . toEqual ( Object . keys ( exampleLookup ) . length ) ;
30
30
} ) ;
31
31
} ) ;
@@ -52,11 +52,11 @@ describe('lookupUtils', () => {
52
52
expect ( Object . values ( invertedLookup ) ) . toEqual ( expect . arrayContaining ( Object . keys ( exampleLookup ) ) ) ;
53
53
} ) ;
54
54
55
- test ( '# of new keys should match the # of values in the old object' , ( ) => {
55
+ test ( 'given a lookup with unique values, # of new keys should match the # of values in the old object' , ( ) => {
56
56
expect ( Object . keys ( invertedLookup ) . length ) . toEqual ( Object . values ( exampleLookup ) . length ) ;
57
57
} ) ;
58
58
59
- test ( '# of new values should match the # of keys in the old object' , ( ) => {
59
+ test ( 'given a lookup with unique values, # of new values should match the # of keys in the old object' , ( ) => {
60
60
expect ( Object . values ( invertedLookup ) . length ) . toEqual ( Object . keys ( exampleLookup ) . length ) ;
61
61
} ) ;
62
62
} ) ;
0 commit comments