@@ -26,6 +26,33 @@ describe('The "dist" folder', () => {
2626
2727 } ) ;
2828
29+ ////////////////////////////////////////////////////////////////////////////////
30+ describe ( 'Library module' , ( ) => {
31+
32+ it ( 'is an object' , ( ) => {
33+ const actual = { constructor : clabe . constructor . name } ;
34+ const expected = { constructor : 'Object' } ;
35+ assertDeepStrictEqual ( actual , expected ) ;
36+ } ) ;
37+
38+ it ( 'has the correct properties' , ( ) => {
39+ const module = clabe ;
40+ const actual = Object . keys ( module ) . sort ( ) . map ( key => [ key , typeof module [ key ] ] ) ;
41+ const expected = [
42+ [ 'assert' , 'function' ] ,
43+ [ 'banksMap' , 'object' ] ,
44+ [ 'calculate' , 'function' ] ,
45+ [ 'cities' , 'object' ] ,
46+ [ 'citiesMap' , 'object' ] ,
47+ [ 'computeChecksum' , 'function' ] ,
48+ [ 'validate' , 'function' ] ,
49+ [ 'version' , 'string' ] ,
50+ ] ;
51+ assertDeepStrictEqual ( actual , expected ) ;
52+ } ) ;
53+
54+ } ) ;
55+
2956////////////////////////////////////////////////////////////////////////////////
3057describe ( 'Current number of banks and cities' , ( ) => {
3158
0 commit comments