UNPKG

1 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../source/getCountryCallingCode.test.js"],"names":["describe","it","metadata","should","equal","expect","to"],"mappings":";;AAAA;;AAEA;;;;AAEAA,QAAQ,CAAC,uBAAD,EAA0B,YAAM;AACvCC,EAAAA,EAAE,CAAC,iCAAD,EAAoC,YAAM;AAC3C,2CAAsB,IAAtB,EAA4BC,uBAA5B,EAAsCC,MAAtC,CAA6CC,KAA7C,CAAmD,GAAnD;AACA,GAFC,CAAF;AAIAH,EAAAA,EAAE,CAAC,oCAAD,EAAuC,YAAM;AAC9CI,IAAAA,MAAM,CAAC;AAAA,aAAM,uCAAsB,IAAtB,EAA4BH,uBAA5B,CAAN;AAAA,KAAD,CAAN,CAAoDI,EAApD,UAA6D,qBAA7D;AACA,GAFC,CAAF;AAGA,CARO,CAAR","sourcesContent":["import metadata from '../metadata.min.json'\r\n\r\nimport getCountryCallingCode from './getCountryCallingCode'\r\n\r\ndescribe('getCountryCallingCode', () => {\r\n\tit('should get country calling code', () => {\r\n\t\tgetCountryCallingCode('US', metadata).should.equal('1')\r\n\t})\r\n\r\n\tit('should throw if country is unknown', () => {\r\n\t\texpect(() => getCountryCallingCode('ZZ', metadata)).to.throw('Unknown country: ZZ')\r\n\t})\r\n})"],"file":"getCountryCallingCode.test.js"}
\No newline at end of file