diff --git a/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json b/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json new file mode 100644 index 0000000..eecd53a --- /dev/null +++ b/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json @@ -0,0 +1 @@ +{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":62}},"25":{"start":{"line":26,"column":26},"end":{"line":26,"column":69}},"26":{"start":{"line":27,"column":22},"end":{"line":27,"column":61}},"27":{"start":{"line":28,"column":21},"end":{"line":28,"column":59}},"28":{"start":{"line":29,"column":20},"end":{"line":29,"column":48}},"29":{"start":{"line":30,"column":15},"end":{"line":30,"column":44}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":24}},"31":{"start":{"line":32,"column":0},"end":{"line":144,"column":3}},"32":{"start":{"line":33,"column":4},"end":{"line":87,"column":7}},"33":{"start":{"line":34,"column":28},"end":{"line":34,"column":74}},"34":{"start":{"line":35,"column":31},"end":{"line":35,"column":78}},"35":{"start":{"line":36,"column":8},"end":{"line":36,"column":71}},"36":{"start":{"line":37,"column":8},"end":{"line":37,"column":89}},"37":{"start":{"line":38,"column":8},"end":{"line":38,"column":106}},"38":{"start":{"line":39,"column":8},"end":{"line":39,"column":98}},"39":{"start":{"line":40,"column":8},"end":{"line":40,"column":108}},"40":{"start":{"line":41,"column":8},"end":{"line":41,"column":104}},"41":{"start":{"line":42,"column":8},"end":{"line":42,"column":108}},"42":{"start":{"line":43,"column":8},"end":{"line":43,"column":134}},"43":{"start":{"line":44,"column":8},"end":{"line":44,"column":98}},"44":{"start":{"line":45,"column":8},"end":{"line":45,"column":102}},"45":{"start":{"line":46,"column":8},"end":{"line":46,"column":104}},"46":{"start":{"line":47,"column":8},"end":{"line":47,"column":92}},"47":{"start":{"line":48,"column":8},"end":{"line":48,"column":108}},"48":{"start":{"line":49,"column":8},"end":{"line":49,"column":92}},"49":{"start":{"line":50,"column":8},"end":{"line":50,"column":110}},"50":{"start":{"line":51,"column":8},"end":{"line":51,"column":110}},"51":{"start":{"line":52,"column":8},"end":{"line":52,"column":126}},"52":{"start":{"line":53,"column":8},"end":{"line":53,"column":128}},"53":{"start":{"line":54,"column":8},"end":{"line":54,"column":102}},"54":{"start":{"line":55,"column":8},"end":{"line":55,"column":114}},"55":{"start":{"line":56,"column":8},"end":{"line":56,"column":98}},"56":{"start":{"line":57,"column":8},"end":{"line":57,"column":134}},"57":{"start":{"line":58,"column":8},"end":{"line":58,"column":106}},"58":{"start":{"line":59,"column":8},"end":{"line":59,"column":114}},"59":{"start":{"line":60,"column":8},"end":{"line":60,"column":116}},"60":{"start":{"line":61,"column":8},"end":{"line":61,"column":102}},"61":{"start":{"line":62,"column":8},"end":{"line":62,"column":86}},"62":{"start":{"line":63,"column":8},"end":{"line":63,"column":94}},"63":{"start":{"line":64,"column":8},"end":{"line":64,"column":108}},"64":{"start":{"line":65,"column":8},"end":{"line":65,"column":106}},"65":{"start":{"line":66,"column":8},"end":{"line":66,"column":136}},"66":{"start":{"line":67,"column":8},"end":{"line":67,"column":88}},"67":{"start":{"line":68,"column":8},"end":{"line":68,"column":102}},"68":{"start":{"line":69,"column":8},"end":{"line":69,"column":102}},"69":{"start":{"line":70,"column":8},"end":{"line":70,"column":108}},"70":{"start":{"line":71,"column":8},"end":{"line":71,"column":110}},"71":{"start":{"line":72,"column":8},"end":{"line":72,"column":126}},"72":{"start":{"line":73,"column":8},"end":{"line":73,"column":102}},"73":{"start":{"line":74,"column":8},"end":{"line":74,"column":136}},"74":{"start":{"line":75,"column":8},"end":{"line":75,"column":118}},"75":{"start":{"line":76,"column":8},"end":{"line":76,"column":118}},"76":{"start":{"line":77,"column":8},"end":{"line":77,"column":116}},"77":{"start":{"line":78,"column":8},"end":{"line":78,"column":132}},"78":{"start":{"line":79,"column":8},"end":{"line":79,"column":140}},"79":{"start":{"line":80,"column":8},"end":{"line":80,"column":140}},"80":{"start":{"line":81,"column":8},"end":{"line":81,"column":138}},"81":{"start":{"line":82,"column":8},"end":{"line":82,"column":116}},"82":{"start":{"line":83,"column":8},"end":{"line":83,"column":120}},"83":{"start":{"line":84,"column":8},"end":{"line":84,"column":98}},"84":{"start":{"line":85,"column":8},"end":{"line":85,"column":110}},"85":{"start":{"line":86,"column":8},"end":{"line":86,"column":100}},"86":{"start":{"line":88,"column":4},"end":{"line":114,"column":7}},"87":{"start":{"line":89,"column":24},"end":{"line":89,"column":66}},"88":{"start":{"line":90,"column":27},"end":{"line":90,"column":68}},"89":{"start":{"line":91,"column":8},"end":{"line":91,"column":63}},"90":{"start":{"line":92,"column":8},"end":{"line":92,"column":81}},"91":{"start":{"line":93,"column":8},"end":{"line":93,"column":78}},"92":{"start":{"line":94,"column":8},"end":{"line":94,"column":80}},"93":{"start":{"line":95,"column":8},"end":{"line":95,"column":110}},"94":{"start":{"line":96,"column":8},"end":{"line":96,"column":106}},"95":{"start":{"line":97,"column":8},"end":{"line":97,"column":100}},"96":{"start":{"line":98,"column":8},"end":{"line":98,"column":86}},"97":{"start":{"line":99,"column":8},"end":{"line":99,"column":106}},"98":{"start":{"line":100,"column":8},"end":{"line":100,"column":102}},"99":{"start":{"line":101,"column":8},"end":{"line":101,"column":84}},"100":{"start":{"line":102,"column":8},"end":{"line":102,"column":88}},"101":{"start":{"line":103,"column":8},"end":{"line":103,"column":94}},"102":{"start":{"line":104,"column":8},"end":{"line":104,"column":102}},"103":{"start":{"line":105,"column":8},"end":{"line":105,"column":92}},"104":{"start":{"line":106,"column":8},"end":{"line":106,"column":108}},"105":{"start":{"line":107,"column":8},"end":{"line":107,"column":124}},"106":{"start":{"line":108,"column":8},"end":{"line":108,"column":130}},"107":{"start":{"line":109,"column":8},"end":{"line":109,"column":120}},"108":{"start":{"line":110,"column":8},"end":{"line":110,"column":116}},"109":{"start":{"line":111,"column":8},"end":{"line":111,"column":96}},"110":{"start":{"line":112,"column":8},"end":{"line":112,"column":110}},"111":{"start":{"line":113,"column":8},"end":{"line":113,"column":100}},"112":{"start":{"line":115,"column":4},"end":{"line":143,"column":7}},"113":{"start":{"line":116,"column":30},"end":{"line":116,"column":72}},"114":{"start":{"line":117,"column":33},"end":{"line":117,"column":79}},"115":{"start":{"line":118,"column":8},"end":{"line":118,"column":75}},"116":{"start":{"line":119,"column":8},"end":{"line":119,"column":93}},"117":{"start":{"line":120,"column":8},"end":{"line":120,"column":86}},"118":{"start":{"line":121,"column":8},"end":{"line":121,"column":104}},"119":{"start":{"line":122,"column":8},"end":{"line":122,"column":102}},"120":{"start":{"line":123,"column":8},"end":{"line":123,"column":110}},"121":{"start":{"line":124,"column":8},"end":{"line":124,"column":90}},"122":{"start":{"line":125,"column":8},"end":{"line":125,"column":90}},"123":{"start":{"line":126,"column":8},"end":{"line":126,"column":92}},"124":{"start":{"line":127,"column":8},"end":{"line":127,"column":88}},"125":{"start":{"line":128,"column":8},"end":{"line":128,"column":116}},"126":{"start":{"line":129,"column":8},"end":{"line":129,"column":112}},"127":{"start":{"line":130,"column":8},"end":{"line":130,"column":96}},"128":{"start":{"line":131,"column":8},"end":{"line":131,"column":116}},"129":{"start":{"line":132,"column":8},"end":{"line":132,"column":114}},"130":{"start":{"line":133,"column":8},"end":{"line":133,"column":134}},"131":{"start":{"line":134,"column":8},"end":{"line":134,"column":114}},"132":{"start":{"line":135,"column":8},"end":{"line":135,"column":96}},"133":{"start":{"line":136,"column":8},"end":{"line":136,"column":120}},"134":{"start":{"line":137,"column":8},"end":{"line":137,"column":116}},"135":{"start":{"line":138,"column":8},"end":{"line":138,"column":138}},"136":{"start":{"line":139,"column":8},"end":{"line":139,"column":106}},"137":{"start":{"line":140,"column":8},"end":{"line":140,"column":102}},"138":{"start":{"line":141,"column":8},"end":{"line":141,"column":84}},"139":{"start":{"line":142,"column":8},"end":{"line":142,"column":106}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":32,"column":21},"end":{"line":32,"column":22}},"loc":{"start":{"line":32,"column":27},"end":{"line":144,"column":1}},"line":32},"7":{"name":"(anonymous_7)","decl":{"start":{"line":33,"column":39},"end":{"line":33,"column":40}},"loc":{"start":{"line":33,"column":45},"end":{"line":87,"column":5}},"line":33},"8":{"name":"(anonymous_8)","decl":{"start":{"line":88,"column":42},"end":{"line":88,"column":43}},"loc":{"start":{"line":88,"column":48},"end":{"line":114,"column":5}},"line":88},"9":{"name":"(anonymous_9)","decl":{"start":{"line":115,"column":41},"end":{"line":115,"column":42}},"loc":{"start":{"line":115,"column":47},"end":{"line":143,"column":5}},"line":115}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":99,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"71":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"114":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1},"f":{"0":10,"1":99,"2":0,"3":1,"4":0,"5":1,"6":1,"7":1,"8":1,"9":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAA+D;AAC/D,8DAA6D;AAC7D,4DAA4D;AAC5D,iDAI2B;AAC3B,6CAAoC;AAOpC,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;QACtC,MAAM,WAAW,GAAsB,IAAA,uCAA2B,GAAE,CAAC;QACrE,MAAM,cAAc,GAAyB,IAAA,6BAAW,EAAC,WAAW,CAAC,CAAC;QACtE,IAAA,aAAM,EAAC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACnD,IAAA,aAAM,EAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,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AC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC5E,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CACzD,gBAAgB,CAAC,oBAAoB,CAAC,CACvC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CACvD,gBAAgB,CAAC,kBAAkB,CAAC,CACrC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClE,gBAAgB,CAAC,6BAA6B,CAAC,CAChD,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAChD,gBAAgB,CAAC,WAAW,CAAC,CAC9B,CAAC;QACF,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAChE,IAAA,aAAM,EAAC,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAClD,gBAAgB,CAAC,aAAa,CAAC,CAChC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { trimRequest } from '../util/trimming/flight-requests';\nimport { trimFlightLeg } from '../util/trimming/flight-legs';\nimport { trimPassenger } from '../util/trimming/passengers';\nimport {\n createTestFlightLegData,\n createTestFlightRequestData,\n createTestPassengerData,\n} from '../data/test-data';\nimport chai, { expect } from 'chai';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface';\nimport type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface';\nimport type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface';\nchai.should();\n\ndescribe('Trimming', () => {\n it('should properly trim request', () => {\n const requestData: FlightRequestData = createTestFlightRequestData();\n const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData);\n expect(requestData.id).to.equal(trimmedRequest.id);\n expect(requestData.createdTime).to.equal(trimmedRequest.createdTime);\n expect(requestData.fields['Submission ID']).to.equal(\n trimmedRequest['Submission ID']\n );\n expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']);\n expect(requestData.fields['Departure Date']).to.equal(\n trimmedRequest['Departure Date']\n );\n expect(requestData.fields['Request Type']).to.equal(\n trimmedRequest['Request Type']\n );\n expect(requestData.fields['Household Size']).to.equal(\n trimmedRequest['Household Size']\n );\n expect(requestData.fields['Passenger 2 Approval Status']).to.equal(\n trimmedRequest['Passenger 2 Approval Status']\n );\n expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']);\n expect(requestData.fields['Passenger 3']).to.equal(\n trimmedRequest['Passenger 3']\n );\n expect(requestData.fields['Patient Type']).to.equal(\n trimmedRequest['Patient Type']\n );\n expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity);\n expect(requestData.fields['Treatment City']).to.equal(\n trimmedRequest['Treatment City']\n );\n expect(requestData.fields.Education).to.equal(trimmedRequest.Education);\n expect(requestData.fields['Treatment Phone']).to.equal(\n trimmedRequest['Treatment Phone']\n );\n expect(requestData.fields['Submission Date']).to.equal(\n trimmedRequest['Submission Date']\n );\n expect(requestData.fields['Alt Destination Airport']).to.equal(\n trimmedRequest['Alt Destination Airport']\n );\n expect(requestData.fields['Primary Treatment Doctor']).to.equal(\n trimmedRequest['Primary Treatment Doctor']\n );\n expect(requestData.fields['Wheelchair?']).to.equal(\n trimmedRequest['Wheelchair?']\n );\n expect(requestData.fields['Flight Specialist']).to.equal(\n trimmedRequest['Flight Specialist']\n );\n expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']);\n expect(requestData.fields['Passenger 3 Approval Status']).to.equal(\n trimmedRequest['Passenger 3 Approval Status']\n );\n expect(requestData.fields['First Request']).to.equal(\n trimmedRequest['First Request']\n );\n expect(requestData.fields['Type of Treatment']).to.equal(\n trimmedRequest['Type of Treatment']\n );\n expect(requestData.fields['Passenger 3 Reason']).to.equal(\n trimmedRequest['Passenger 3 Reason']\n );\n expect(requestData.fields['Flight Legs']).to.equal(\n trimmedRequest['Flight Legs']\n );\n expect(requestData.fields.Status).to.equal(trimmedRequest.Status);\n expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']);\n expect(requestData.fields['Origin Airport']).to.equal(\n trimmedRequest['Origin Airport']\n );\n expect(requestData.fields['Treatment Fax']).to.equal(\n trimmedRequest['Treatment Fax']\n );\n expect(requestData.fields['Passenger 3 Different Return']).to.equal(\n trimmedRequest['Passenger 3 Different Return']\n );\n expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient);\n expect(requestData.fields['Passenger 2']).to.equal(\n trimmedRequest['Passenger 2']\n );\n expect(requestData.fields['Return Date']).to.equal(\n trimmedRequest['Return Date']\n );\n expect(requestData.fields['Treatment Site']).to.equal(\n trimmedRequest['Treatment Site']\n );\n expect(requestData.fields['Treatment State']).to.equal(\n trimmedRequest['Treatment State']\n );\n expect(requestData.fields['Passenger 3 Return Date']).to.equal(\n trimmedRequest['Passenger 3 Return Date']\n );\n expect(requestData.fields['Patient Age']).to.equal(\n trimmedRequest['Patient Age']\n );\n expect(requestData.fields['Passenger 2 Different Return']).to.equal(\n trimmedRequest['Passenger 2 Different Return']\n );\n expect(requestData.fields['Destination Airport']).to.equal(\n trimmedRequest['Destination Airport']\n );\n expect(requestData.fields['Alt. Origin Airport']).to.equal(\n trimmedRequest['Alt. Origin Airport']\n );\n expect(requestData.fields['AirTable Record ID']).to.equal(\n trimmedRequest['AirTable Record ID']\n );\n expect(requestData.fields['Patient AirTable Record ID']).to.equal(\n trimmedRequest['Patient AirTable Record ID']\n );\n expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 2 AirTable Record ID']\n );\n expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(\n trimmedRequest['Passenger 3 AirTable Record ID']\n );\n expect(requestData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedRequest['Passenger AirTable Record IDs']\n );\n expect(requestData.fields['Existing Diagnoses']).to.equal(\n trimmedRequest['Existing Diagnoses']\n );\n expect(requestData.fields['Total Nautical Miles']).to.equal(\n trimmedRequest['Total Nautical Miles']\n );\n expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']);\n expect(requestData.fields['Total # of Legs']).to.equal(\n trimmedRequest['Total # of Legs']\n );\n expect(requestData.fields['Request ID']).to.equal(\n trimmedRequest['Request ID']\n );\n });\n\n it('should properly trim flight leg', () => {\n const legData: FlightLegData = createTestFlightLegData();\n const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData);\n expect(legData.id).to.equal(trimmedLeg.id);\n expect(legData.createdTime).to.equal(trimmedLeg.createdTime);\n expect(legData.fields.Status).to.equal(trimmedLeg.Status);\n expect(legData.fields.Airline).to.equal(trimmedLeg.Airline);\n expect(legData.fields['Departure Date/Time']).to.equal(\n trimmedLeg['Departure Date/Time']\n );\n expect(legData.fields['Arrival Date/Time']).to.equal(\n trimmedLeg['Arrival Date/Time']\n );\n expect(legData.fields['Nautical Miles']).to.equal(\n trimmedLeg['Nautical Miles']\n );\n expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers);\n expect(legData.fields['Departure Airport']).to.equal(\n trimmedLeg['Departure Airport']\n );\n expect(legData.fields['Arrival Airport']).to.equal(\n trimmedLeg['Arrival Airport']\n );\n expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']);\n expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']);\n expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']);\n expect(legData.fields['Passenger Names']).to.equal(\n trimmedLeg['Passenger Names']\n );\n expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']);\n expect(legData.fields['AirTable Record ID']).to.equal(\n trimmedLeg['AirTable Record ID']\n );\n expect(legData.fields['Request AirTable Record ID']).to.equal(\n trimmedLeg['Request AirTable Record ID']\n );\n expect(legData.fields['Passenger AirTable Record IDs']).to.equal(\n trimmedLeg['Passenger AirTable Record IDs']\n );\n expect(legData.fields['Log Airline Credit'].label).to.equal(\n trimmedLeg['Log Airline Credit'].label\n );\n expect(legData.fields['Log Airline Credit'].url).to.equal(\n trimmedLeg['Log Airline Credit'].url\n );\n expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']);\n expect(legData.fields['Patient Latest Trip']).to.equal(\n trimmedLeg['Patient Latest Trip']\n );\n expect(legData.fields['Is Latest Trip']).to.equal(\n trimmedLeg['Is Latest Trip']\n );\n });\n\n it('should properly trim passenger', () => {\n const passengerData: PassengerData = createTestPassengerData();\n const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData);\n expect(passengerData.id).to.equal(trimmedPassenger.id);\n expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime);\n expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type);\n expect(passengerData.fields['First Name']).to.equal(\n trimmedPassenger['First Name']\n );\n expect(passengerData.fields['Last Name']).to.equal(\n trimmedPassenger['Last Name']\n );\n expect(passengerData.fields['Date of Birth']).to.equal(\n trimmedPassenger['Date of Birth']\n );\n expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender);\n expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street);\n expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country);\n expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email);\n expect(passengerData.fields['Household Income']).to.equal(\n trimmedPassenger['Household Income']\n );\n expect(passengerData.fields['Household Size']).to.equal(\n trimmedPassenger['Household Size']\n );\n expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity);\n expect(passengerData.fields['Military Service']).to.equal(\n trimmedPassenger['Military Service']\n );\n expect(passengerData.fields['Military Member']).to.equal(\n trimmedPassenger['Military Member']\n );\n expect(passengerData.fields['How did you hear about us']).to.equal(\n trimmedPassenger['How did you hear about us']\n );\n expect(passengerData.fields['All Flight Legs']).to.equal(\n trimmedPassenger['All Flight Legs']\n );\n expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis);\n expect(passengerData.fields['AirTable Record ID']).to.equal(\n trimmedPassenger['AirTable Record ID']\n );\n expect(passengerData.fields['# of Flight Legs']).to.equal(\n trimmedPassenger['# of Flight Legs']\n );\n expect(passengerData.fields['# of Booked Flight Requests']).to.equal(\n trimmedPassenger['# of Booked Flight Requests']\n );\n expect(passengerData.fields['Birth Month']).to.equal(\n trimmedPassenger['Birth Month']\n );\n expect(passengerData.fields['Full Name']).to.equal(\n trimmedPassenger['Full Name']\n );\n expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age);\n expect(passengerData.fields['Latest Trip']).to.equal(\n trimmedPassenger['Latest Trip']\n );\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"0ea2704959448ff368f982f2abfe0eb855da9435","contentHash":"8ddbdeb97a97eb667668ec2ce80f1b7d7f08a17491a96afcc7f832e681854b95"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"2":{"start":{"line":4,"column":20},"end":{"line":61,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":65},"end":{"line":6,"column":71}},"5":{"start":{"line":7,"column":27},"end":{"line":59,"column":5}},"6":{"start":{"line":60,"column":4},"end":{"line":60,"column":26}},"7":{"start":{"line":62,"column":0},"end":{"line":62,"column":34}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":20},"end":{"line":4,"column":21}},"loc":{"start":{"line":4,"column":33},"end":{"line":61,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts"],"names":[],"mappings":";;;AAGO,MAAM,WAAW,GAAG,CAAC,OAA0B,EAAwB,EAAE;IAC9E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAEpE,MAAM,cAAc,GAAyB;QAC3C,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,6BAA6B,EAAE,MAAM,CAAC,6BAA6B,CAAC;QACpE,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,cAAc,EAA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AAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,gCAAgC,EAAE,MAAM,CAAC,gCAAgC,CAAC;QAC1E,gCAAgC,EAAE,MAAM,CAAC,gCAAgC,CAAC;QAC1E,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,sBAAsB,EAAE,MAAM,CAAC,sBAAsB,CAAC;QACtD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;KACnC,CAAC;IAEF,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AA5DW,QAAA,WAAW,eA4DtB","sourcesContent":["import type { FlightRequestData } from '../../interfaces/requests/flight-request.interface';\nimport type { TrimmedFlightRequest } from '../../interfaces/requests/trimmed-flight-request.interface';\n\nexport const trimRequest = (request: FlightRequestData): TrimmedFlightRequest => {\n const { id, createdTime, fields } = request;\n\n const { Diagnosis, Ethnicity, Education, Status, Patient } = fields;\n\n const trimmedRequest: TrimmedFlightRequest = {\n id: id,\n createdTime: createdTime,\n 'Submission ID': fields['Submission ID'],\n 'Trip Type': fields['Trip Type'],\n 'Departure Date': fields['Departure Date'],\n 'Request Type': fields['Request Type'],\n 'Household Size': fields['Household Size'],\n 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'],\n Diagnosis: Diagnosis,\n 'Passenger 3': fields['Passenger 3'],\n 'Patient Type': fields['Patient Type'],\n Ethnicity: Ethnicity,\n 'Treatment City': fields['Treatment City'],\n Education: Education,\n 'Treatment Phone': fields['Treatment Phone'],\n 'Submission Date': fields['Submission Date'],\n 'Alt Destination Airport': fields['Alt Destination Airport'],\n 'Primary Treatment Doctor': fields['Primary Treatment Doctor'],\n 'Wheelchair?': fields['Wheelchair?'],\n 'Flight Specialist': fields['Flight Specialist'],\n 'Appt Date': fields['Appt Date'],\n 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'],\n 'First Request': fields['First Request'],\n 'Type of Treatment': fields['Type of Treatment'],\n 'Passenger 3 Reason': fields['Passenger 3 Reason'],\n 'Flight Legs': fields['Flight Legs'],\n Status: Status,\n 'Oxygen?': fields['Oxygen?'],\n 'Origin Airport': fields['Origin Airport'],\n 'Treatment Fax': fields['Treatment Fax'],\n 'Passenger 3 Different Return': fields['Passenger 3 Different Return'],\n Patient: Patient,\n 'Passenger 2': fields['Passenger 2'],\n 'Return Date': fields['Return Date'],\n 'Treatment Site': fields['Treatment Site'],\n 'Treatment State': fields['Treatment State'],\n 'Passenger 3 Return Date': fields['Passenger 3 Return Date'],\n 'Patient Age': fields['Patient Age'],\n 'Passenger 2 Different Return': fields['Passenger 2 Different Return'],\n 'Destination Airport': fields['Destination Airport'],\n 'Alt. Origin Airport': fields['Alt. Origin Airport'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Patient AirTable Record ID': fields['Patient AirTable Record ID'],\n 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'],\n 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Existing Diagnoses': fields['Existing Diagnoses'],\n 'Total Nautical Miles': fields['Total Nautical Miles'],\n '# of Legs': fields['# of Legs'],\n 'Total # of Legs': fields['Total # of Legs'],\n 'Request ID': fields['Request ID'],\n };\n\n return trimmedRequest;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bc520d2d596e15fc30a0167ecb05712205c25c6c","contentHash":"d3d50c11d1a91b9757c5569b0f19650ed4428dfa62dff5649d84e84957e4ea2e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":35,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":47}},"4":{"start":{"line":6,"column":44},"end":{"line":6,"column":50}},"5":{"start":{"line":7,"column":23},"end":{"line":33,"column":5}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":22}},"7":{"start":{"line":36,"column":0},"end":{"line":36,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":35},"end":{"line":35,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,OAAsB,EAAoB,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE5C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAE/C,MAAM,UAAU,GAAqB;QACnC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,UAAU,EAAE,UAAU;QACtB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,CAAC;QAChD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;QAC9B,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,4BAA4B,EAAE,MAAM,CAAC,4BAA4B,CAAC;QAClE,+BAA+B,EAAE,MAAM,CAAC,+BAA+B,CAAC;QACxE,oBAAoB,EAAE;YACpB,KAAK,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,KAAK;YACzC,GAAG,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,GAAG;SACtC;QACD,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC;QACtC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC;QACpD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAC3C,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAlCW,QAAA,aAAa,iBAkCxB","sourcesContent":["import type { FlightLegData } from '../../interfaces/legs/flight-leg.interface';\nimport type { TrimmedFlightLeg } from '../../interfaces/legs/trimmed-flight-leg.interface';\n\nexport const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => {\n const { id, createdTime, fields } = request;\n\n const { Status, Airline, Passengers } = fields;\n\n const trimmedLeg: TrimmedFlightLeg = {\n id: id,\n createdTime: createdTime,\n Status: Status,\n Airline: Airline,\n 'Departure Date/Time': fields['Departure Date/Time'],\n 'Arrival Date/Time': fields['Arrival Date/Time'],\n 'Nautical Miles': fields['Nautical Miles'],\n Passengers: Passengers,\n 'Departure Airport': fields['Departure Airport'],\n 'Arrival Airport': fields['Arrival Airport'],\n 'Leg ID': fields['Leg ID'],\n 'Leg Type': fields['Leg Type'],\n 'Total Miles': fields['Total Miles'],\n 'Passenger Names': fields['Passenger Names'],\n 'Total Cost': fields['Total Cost'],\n 'AirTable Record ID': fields['AirTable Record ID'],\n 'Request AirTable Record ID': fields['Request AirTable Record ID'],\n 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'],\n 'Log Airline Credit': {\n label: fields['Log Airline Credit'].label,\n url: fields['Log Airline Credit'].url,\n },\n 'Patient Name': fields['Patient Name'],\n 'Patient Latest Trip': fields['Patient Latest Trip'],\n 'Is Latest Trip': fields['Is Latest Trip'],\n };\n\n return trimmedLeg;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"457d848713bbc65e50d8abc11e532a2268cf72d0","contentHash":"a46a8687ad3590299a872bb6385ba6335cef4490a56b4c66eef79677e0dba119"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":31}},"2":{"start":{"line":4,"column":22},"end":{"line":35,"column":1}},"3":{"start":{"line":5,"column":40},"end":{"line":5,"column":49}},"4":{"start":{"line":6,"column":80},"end":{"line":6,"column":86}},"5":{"start":{"line":7,"column":29},"end":{"line":33,"column":5}},"6":{"start":{"line":34,"column":4},"end":{"line":34,"column":28}},"7":{"start":{"line":36,"column":0},"end":{"line":36,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":23}},"loc":{"start":{"line":4,"column":37},"end":{"line":35,"column":1}},"line":4}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1},"f":{"0":1},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts"],"names":[],"mappings":";;;AAGO,MAAM,aAAa,GAAG,CAAC,SAAwB,EAAoB,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GACvE,MAAM,CAAC;IAET,MAAM,gBAAgB,GAAqB;QACzC,EAAE,EAAE,EAAE;QACN,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC;QACxC,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,KAAK;QACZ,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAC1C,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,2BAA2B,EAAE,MAAM,CAAC,2BAA2B,CAAC;QAChE,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC;QAC5C,SAAS,EAAE,SAAS;QACpB,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAClD,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;QAC9C,6BAA6B,EAAE,MAAM,CAAC,6BAA6B,CAAC;QACpE,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;QACpC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;QAChC,GAAG,EAAE,GAAG;QACR,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC;KACrC,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAnCW,QAAA,aAAa,iBAmCxB","sourcesContent":["import type { PassengerData } from '../../interfaces/passenger/passenger.interface';\nimport type { TrimmedPassenger } from '../../interfaces/passenger/trimmed-passenger.interface';\n\nexport const trimPassenger = (passenger: PassengerData): TrimmedPassenger => {\n const { id, createdTime, fields } = passenger;\n\n const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } =\n fields;\n\n const trimmedPassenger: TrimmedPassenger = {\n id: id,\n createdTime: createdTime,\n Type: Type,\n 'First Name': fields['First Name'],\n 'Last Name': fields['Last Name'],\n 'Date of Birth': fields['Date of Birth'],\n Gender: Gender,\n Street: Street,\n Country: Country,\n Email: Email,\n 'Household Income': fields['Household Income'],\n 'Household Size': fields['Household Size'],\n Ethnicity: Ethnicity,\n 'Military Service': fields['Military Service'],\n 'Military Member': fields['Military Member'],\n 'How did you hear about us': fields['How did you hear about us'],\n 'All Flight Legs': fields['All Flight Legs'],\n Diagnosis: Diagnosis,\n 'AirTable Record ID': fields['AirTable Record ID'],\n '# of Flight Legs': fields['# of Flight Legs'],\n '# of Booked Flight Requests': fields['# of Booked Flight Requests'],\n 'Birth Month': fields['Birth Month'],\n 'Full Name': fields['Full Name'],\n Age: Age,\n 'Latest Trip': fields['Latest Trip'],\n };\n\n return trimmedPassenger;\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"7ff4271595f246c8a07fc7c5165d361e27988127","contentHash":"36c93ded7417c53f692a51aa33144cad1981c18a90ff22159ac7bd92ddc7c78f"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":113}},"2":{"start":{"line":4,"column":20},"end":{"line":4,"column":42}},"3":{"start":{"line":5,"column":16},"end":{"line":5,"column":42}},"4":{"start":{"line":12,"column":32},"end":{"line":117,"column":1}},"5":{"start":{"line":13,"column":22},"end":{"line":13,"column":54}},"6":{"start":{"line":14,"column":21},"end":{"line":14,"column":52}},"7":{"start":{"line":15,"column":21},"end":{"line":15,"column":60}},"8":{"start":{"line":16,"column":27},"end":{"line":18,"column":22}},"9":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"10":{"start":{"line":19,"column":4},"end":{"line":116,"column":216}},"11":{"start":{"line":118,"column":0},"end":{"line":118,"column":58}},"12":{"start":{"line":125,"column":32},"end":{"line":256,"column":125}},"13":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"14":{"start":{"line":257,"column":0},"end":{"line":257,"column":58}},"15":{"start":{"line":264,"column":36},"end":{"line":424,"column":297}},"16":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"17":{"start":{"line":425,"column":0},"end":{"line":425,"column":66}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":12,"column":32},"end":{"line":12,"column":33}},"loc":{"start":{"line":12,"column":53},"end":{"line":117,"column":1}},"line":12},"1":{"name":"(anonymous_1)","decl":{"start":{"line":16,"column":27},"end":{"line":16,"column":28}},"loc":{"start":{"line":16,"column":40},"end":{"line":18,"column":22}},"line":16},"2":{"name":"(anonymous_2)","decl":{"start":{"line":125,"column":32},"end":{"line":125,"column":33}},"loc":{"start":{"line":125,"column":54},"end":{"line":256,"column":124}},"line":125},"3":{"name":"(anonymous_3)","decl":{"start":{"line":264,"column":36},"end":{"line":264,"column":37}},"loc":{"start":{"line":264,"column":58},"end":{"line":424,"column":296}},"line":264}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":33},"end":{"line":12,"column":48}},"type":"default-arg","locations":[{"start":{"line":12,"column":46},"end":{"line":12,"column":48}}],"line":12},"1":{"loc":{"start":{"line":125,"column":33},"end":{"line":125,"column":48}},"type":"default-arg","locations":[{"start":{"line":125,"column":46},"end":{"line":125,"column":48}}],"line":125},"2":{"loc":{"start":{"line":264,"column":37},"end":{"line":264,"column":52}},"type":"default-arg","locations":[{"start":{"line":264,"column":50},"end":{"line":264,"column":52}}],"line":264}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1},"f":{"0":1,"1":1,"2":1,"3":1},"b":{"0":[1],"1":[1],"2":[1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,2CAAwC;AAKxC;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CACrC,aAAqC,EAAE,EACxB,EAAE;IACjB,MAAM,SAAS,GAAG,aAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,aAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACjD,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,EAAE,CACzC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;SACxD,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnB,uBACE,EAAE,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACvB,WAAW,E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ACf,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,CAAC;SACP,CAAC,CACH,EACD,yBAAyB,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAC1E,uBAAuB,EAAE,aAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EACxE,YAAY,EAAE,aAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EACjC,KAAK,EAAE,aAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,IAC1B,UAAU,CAAC,MAAM,KAEnB,UAAU,EACQ,CAAC;AAlRb,QAAA,2BAA2B,+BAkRd","sourcesContent":["import { AIRLINES } from './constants';\nimport { faker } from '@faker-js/faker';\nimport type { FlightRequestData } from '../interfaces/requests/flight-request.interface';\nimport type { PassengerData } from '../interfaces/passenger/passenger.interface';\nimport type { FlightLegData } from '../interfaces/legs/flight-leg.interface';\n\n/**\n * Creates a test passenger data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test passenger data object\n */\nexport const createTestPassengerData = (\n manualData: Partial = {}\n): PassengerData => {\n const firstName = faker.person.firstName();\n const lastName = faker.person.lastName();\n const birthday = faker.date.past().toISOString();\n const getPreviousDay = (isoDate: string) =>\n new Date(new Date(isoDate).getTime() - 24 * 60 * 60 * 1000)\n .toISOString()\n .split('T')[0];\n\n return {\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Type: faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n 'First Name': firstName,\n 'Last Name': lastName,\n 'Date of Birth': birthday,\n Gender: faker.helpers.arrayElement(['Female', 'Male']),\n Street: faker.location.streetAddress(),\n Country: faker.location.country(),\n Email: faker.internet.email({\n firstName: firstName,\n lastName: lastName,\n }),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian or Alaska Native',\n 'Asian',\n 'Black or African American',\n 'Hispanic or Latino',\n 'Native Hawaiian or Other Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 5,\n })\n ),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Military Member': faker.helpers.arrayElements(\n ['Self', 'Spouse', 'Mother', 'Father', 'Other'],\n faker.number.int({\n min: 0,\n max: 3,\n })\n ),\n 'How did you hear about us': faker.helpers.arrayElements(\n ['Social Media', 'Internet Search', 'Friend or Family', 'Other'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'BL - Account Number': faker.finance.accountNumber(),\n 'All Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Diagnosis: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment Site Totals 2': [],\n 'Passenger ID': faker.string.uuid(),\n 'AirTable Record ID': faker.string.uuid(),\n '# of Flight Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n '# of Booked Flight Requests (Patient)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 2)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Pass 3)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests (Accompanying)': faker.number.int({\n min: 1,\n max: 3,\n }),\n '# of Booked Flight Requests': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Departure Date/Time (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n faker.date.recent().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Name (from Treatment Site Totals 2)': [],\n 'Name (from Treatment Site Totals 2) 2': [],\n 'PUR (from All Flight Legs)': faker.helpers.arrayElements(\n [\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n faker.number.int({\n min: 1,\n max: 10000,\n }),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Birth Month': faker.date.month(),\n 'Full Name': `${firstName} ${lastName}`,\n 'Passenger Names (from All Flight Legs)': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '# of Accompanying Passengers': faker.number.int({\n min: 1,\n max: 3,\n }),\n Age: faker.number.int({\n min: 1,\n max: 80,\n }),\n Birthday: birthday,\n 'Day Before Birthday': getPreviousDay(birthday),\n 'BL - Site 1 (from All Flight Legs)': faker.helpers.arrayElements(\n [faker.company.name(), faker.company.name(), faker.company.name()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Created: faker.date.recent().toISOString(),\n 'Latest Trip': faker.date.recent().toISOString(),\n 'TS City, State (from Treatment Site Totals 2)': [],\n ...manualData.fields,\n },\n ...manualData,\n };\n};\n\n/**\n * Creates a test flight leg data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight leg data object\n */\nexport const createTestFlightLegData = (\n manualData: Partial = {}\n) => ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n Airline: faker.helpers.arrayElement(AIRLINES),\n 'BL - Departure Airport': faker.location.city(),\n 'Departure Date/Time': faker.date.anytime().toString(),\n 'BL - Arrival Airport': faker.location.city(),\n 'Arrival Date/Time': faker.date.recent().toISOString(),\n 'Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n PUR: faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'BL - # of PAX': faker.number.int({\n min: 1,\n max: 100,\n }),\n 'BL - Treatment Type': faker.helpers.arrayElement([\n 'Chemotherapy',\n 'Radiation',\n 'Surgery',\n 'Clinical Trial',\n 'Other',\n ]),\n 'BL - Site 1': faker.company.name(),\n Passengers: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Departure Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Arrival Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'BL - Site 1 Links': faker.helpers.arrayElements(\n [faker.internet.url(), faker.internet.url(), faker.internet.url()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Leg ID': faker.string.uuid(),\n '# of Linked PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Leg Type': faker.helpers.arrayElement(['Departure', 'Connecting', 'Return']),\n '# of PAX': faker.number.int({\n min: 1,\n max: 3,\n }),\n 'Total Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Passenger Names': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Cost': faker.number.int({\n min: 100,\n max: 2000,\n }),\n 'Cost per PAX': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'AirTable Record ID': faker.string.uuid(),\n 'Request AirTable Record ID': faker.helpers.arrayElements(\n ['request1', 'request2', 'request3', 'request4', 'request5'],\n faker.number.int({\n min: 1,\n max: 1,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Log Airline Credit': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Creation Date': faker.date.recent().toISOString(),\n 'Patient Name': faker.helpers.arrayElements(\n [\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n `${faker.person.firstName()} ${faker.person.lastName()}`,\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Arrival Airport)': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Departure Airport) 2': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers)': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Latest Trip': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Is Latest Trip': faker.helpers.arrayElement(['Yes', 'No']),\n 'Home Phone (from Passengers)': faker.helpers.arrayElements(\n [faker.phone.number(), faker.phone.number(), faker.phone.number()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Street (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n faker.location.streetAddress(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n City: faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'State (from Passengers) 3': faker.helpers.arrayElements(\n [faker.location.state(), faker.location.state(), faker.location.state()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Zip (from Passengers)': faker.helpers.arrayElements(\n [\n faker.location.zipCode(),\n faker.location.zipCode(),\n faker.location.zipCode(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Diagnosis (from Passengers)': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Date of Birth (from Passengers) 2': faker.helpers.arrayElements(\n [\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n faker.date.past().toISOString(),\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'TS City, State (from Treatment Site Totals 2) (from Passengers)':\n faker.helpers.arrayElements(\n [faker.location.city(), faker.location.city(), faker.location.city()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n '48 Hours After Flight': faker.helpers.arrayElement(['Yes', 'No']),\n ...manualData.fields,\n },\n ...manualData,\n});\n\n/**\n * Creates a test flight request data object with random data\n *\n * @param manualData - Optional data to override the random data\n * @returns A test flight request data object\n */\nexport const createTestFlightRequestData = (\n manualData: Partial = {}\n) =>\n ({\n id: faker.string.uuid(),\n createdTime: faker.date.recent().toISOString(),\n fields: {\n 'Submission ID': faker.string.uuid(),\n 'Trip Type': faker.helpers.arrayElement(['One Way', 'Roundtrip']),\n 'Departure Date': faker.date.future().toISOString().split('T')[0],\n 'Request Type': faker.helpers.arrayElement([\n 'Service Dog',\n 'Service Dog Retrieval/Training',\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Household Size': faker.number.int({\n min: 1,\n max: 8,\n }),\n 'Passenger 2 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'How did you hear about us?': faker.helpers.arrayElement([\n 'Local Physician',\n 'Social Media',\n 'Internet Search',\n 'Friend or Family',\n 'Other',\n ]),\n Diagnosis: faker.lorem.sentence(),\n 'Passenger 3': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Patient Type': faker.helpers.arrayElement([\n 'Patient',\n 'Accompanying Passenger',\n 'Partner Organization',\n ]),\n Ethnicity: faker.helpers.arrayElements(\n [\n 'American Indian/Alaskan Native',\n 'Asian',\n 'Black',\n 'Hispanic/Latino',\n 'Native Hawaiian/Pacific Islander',\n 'White',\n 'Other',\n ],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Treatment City': faker.location.city(),\n Education: faker.helpers.arrayElement([\n 'Less than high school degree',\n 'High school degree or equivalent',\n 'Some college, no degree',\n 'Associate degree',\n \"Bachelor's degree\",\n 'Graduate or professional degree',\n ]),\n 'Treatment Phone': faker.phone.number(),\n 'Submission Date': faker.date.recent().toISOString().split('T')[0],\n 'Alt Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Primary Treatment Doctor': faker.person.fullName(),\n 'Wheelchair?': faker.helpers.arrayElement([\n 'Yes, bringing own',\n 'Yes, need to borrow',\n 'No',\n ]),\n 'Flight Specialist': faker.person.fullName(),\n 'Appt Date': faker.date.future().toISOString().split('T')[0],\n 'Passenger 3 Approval Status': faker.helpers.arrayElement([\n 'Approved',\n 'Denied',\n 'Pending',\n ]),\n 'First Request': faker.helpers.arrayElement(['Yes', 'No']),\n 'Type of Treatment': faker.helpers.arrayElement([\n 'Treatment',\n 'Treatment - Clinical Trial',\n 'Treatment - Surgery',\n 'Treatment - Radiation',\n 'Treatment - Chemotherapy',\n 'Treatment - Other',\n ]),\n 'Passenger 3 Reason': faker.lorem.sentence(),\n 'Military Member': faker.helpers.arrayElement([\n 'Self',\n 'Spouse',\n 'Mother',\n 'Father',\n 'Other',\n ]),\n 'Flight Legs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n Status: faker.helpers.arrayElement([\n 'Pending',\n 'Booked',\n 'Rescheduled',\n 'Rebooked',\n 'Canceled',\n 'Did Not Fly',\n ]),\n 'Household Income': faker.number.int({\n min: 5000,\n max: 400000,\n }),\n 'Sources of Income': faker.lorem.sentence(),\n 'Oxygen?': faker.helpers.arrayElement(['Yes', 'No']),\n 'Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Treatment Fax': faker.phone.number(),\n Employment: faker.helpers.arrayElement([\n 'Employed, working 40+ hours per week',\n 'Employed, working 1-39 hours per week',\n 'Unemployed, looking for work',\n 'Unemployed, not looking for work',\n 'Retired',\n 'Student',\n 'Homemaker',\n 'Unable to work',\n 'Other',\n ]),\n 'Martial Status': faker.helpers.arrayElement([\n 'Single',\n 'Married',\n 'Divorced',\n 'Widowed',\n ]),\n 'Military Service': faker.helpers.arrayElement([\n 'Active',\n 'Veteran',\n 'Not Applicable',\n ]),\n 'Passenger 3 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n Patient: faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Return Date': faker.date.future().toISOString().split('T')[0],\n 'Treatment Site': faker.company.name(),\n 'Treatment State': faker.location.streetAddress(),\n 'Passenger 3 Return Date': faker.date.future().toISOString().split('T')[0],\n 'Patient Age': faker.number.int({\n min: 1,\n max: 80,\n }),\n 'Passenger 2 Different Return': faker.helpers.arrayElement(['Yes', 'No']),\n 'Destination Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'Alt. Origin Airport': faker.string.alpha(3).toLocaleUpperCase(),\n 'AirTable Record ID': faker.string.uuid(),\n 'Patient AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 2 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger 3 AirTable Record ID': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Passenger AirTable Record IDs': faker.helpers.arrayElements(\n [faker.string.uuid(), faker.string.uuid(), faker.string.uuid()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Add a Flight Leg': {\n label: faker.company.name(),\n url: faker.internet.url(),\n },\n 'Existing Diagnoses': faker.helpers.arrayElements(\n [faker.lorem.sentence(), faker.lorem.sentence(), faker.lorem.sentence()],\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'Total Nautical Miles': faker.number.int({\n min: 200,\n max: 10000,\n }),\n 'Total PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total Cost': faker.number.int({\n min: 1,\n max: 10000,\n }),\n '# of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Per Leg Total': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg PUR': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Per Leg GIK': faker.number.int({\n min: 1,\n max: 10000,\n }),\n 'Total # of PAX': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Total # of Legs': faker.number.int({\n min: 1,\n max: 10,\n }),\n 'Patient First Name': faker.person.firstName(),\n 'Patient Last Name': faker.person.lastName(),\n 'Patient Name': faker.person.fullName(),\n Airline: faker.helpers.arrayElements(\n AIRLINES,\n faker.number.int({\n min: 1,\n max: 3,\n })\n ),\n 'T-Minus Blacklane Email': faker.date.future().toISOString().split('T')[0],\n '48 Hours After Booked': faker.date.future().toISOString().split('T')[0],\n 'Request ID': faker.string.uuid(),\n Email: faker.internet.email(),\n ...manualData.fields,\n },\n ...manualData,\n }) as FlightRequestData;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"90bf294519a009a7b021491d5dbf3b9620b4210e","contentHash":"4e387d95820d6f3903d46885786c686b61e398fc12989d7f673c1515518796fc"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":26}},"2":{"start":{"line":4,"column":0},"end":{"line":76,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,cAAc;IACd,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,iBAAiB;IACjB,cAAc;IACd,yBAAyB;IACzB,cAAc;IACd,wBAAwB;IACxB,kBAAkB;IAClB,oBAAoB;IACpB,0BAA0B;IAC1B,YAAY;IACZ,kBAAkB;IAClB,eAAe;IACf,eAAe;IACf,6BAA6B;IAC7B,kBAAkB;IAClB,uBAAuB;IACvB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,gCAAgC;IAChC,eAAe;IACf,oBAAoB;IACpB,aAAa;IACb,aAAa;IACb,uBAAuB;IACvB,cAAc;IACd,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,uBAAuB;IACvB,sBAAsB;IACtB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,qBAAqB;IACrB,uBAAuB;IACvB,eAAe;IACf,gBAAgB;IAChB,gCAAgC;IAChC,eAAe;CAChB,CAAC","sourcesContent":["export const AIRLINES = [\n 'AA - American Airlines',\n 'AC - Air Canada',\n 'AE - American Eagle',\n 'AF - Air France',\n 'AG - Allegiant',\n 'AI - Air India',\n 'AK - Alaska',\n 'AL - Aer Lingus',\n 'AM - AeroMexico',\n 'AN - Air New Zealand',\n 'AO - Aeroflot',\n 'AR - Air Transat',\n 'AS - Air Serbia',\n 'AT - AirTran',\n 'ATA - American Trans Air',\n 'AU - Austrian Airlines',\n 'AV - Avianca',\n 'AW - America West',\n 'BA - British Airways',\n 'BH - Bahamasair',\n 'BS - Big Sky',\n 'CA - Corporate Airlines',\n 'CM - Com-Air',\n 'CN - Canadian Airlines',\n 'CO - Continental',\n 'CP - Copa Airlines',\n 'DA - Domodedovo Airlines',\n 'DL - Delta',\n 'EJ - Express Jet',\n 'EK - Emirates',\n 'FT - Frontier',\n 'GA - Grenadine Air Alliance',\n 'GL - Great Lakes',\n 'HA - Horizon Airlines',\n 'HI - Hawaiian Airlines',\n 'IA - Island Air',\n 'IC - Iceland Air',\n 'JB - JetBlue Airways',\n 'KLM - KLM Royal Dutch Airlines',\n 'LH - Lufhansa',\n 'LT - Liat Airlines',\n 'ME - Midway',\n 'MS - Mesaba',\n 'MU - Mustique Airways',\n 'MW - Midwest',\n 'MX - Mexicana',\n 'NA - National',\n 'NW - Northwest',\n 'OC - One Caribbean',\n 'QA - Qantas',\n 'RA - Ravn Alaska',\n 'SA - South African',\n 'SC - SunCountry',\n 'SK - Skywest',\n 'SM - Skyway',\n 'SN - Scandinavian',\n 'SP - Spirit',\n 'SVG - SVG Air',\n 'SW - Southwest',\n 'TA - Tropic Air',\n 'TK - Turkish Airlines',\n 'TWA - TransWorld Air',\n 'UN - United',\n 'US - US Airways',\n 'VA - Vanguard',\n 'VG - Virgin America',\n 'VL - Volaris Airlines',\n 'WJ - West Jet',\n 'US - US Aiways',\n 'SAE - Southern Airways Express',\n 'Qatar Airways',\n];\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"bfcdf74d71b5aa926fa39bf5e879a5d5946e0c19","contentHash":"c37e1b55ffe77a6f77ca808861f8cad92555bce6c97bbe802252624ec64f6b40"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":56}},"46":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"47":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"48":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":56}},"50":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":45},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":39},"end":{"line":54,"column":40}},"loc":{"start":{"line":54,"column":47},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":59,"column":17},"end":{"line":59,"column":18}},"loc":{"start":{"line":59,"column":31},"end":{"line":62,"column":9}},"line":59},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":39},"end":{"line":64,"column":40}},"loc":{"start":{"line":64,"column":47},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":69,"column":17},"end":{"line":69,"column":18}},"loc":{"start":{"line":69,"column":31},"end":{"line":72,"column":9}},"line":69}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":2,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1},"f":{"0":10,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;aAClB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2301, () => {\n console.log('Mock server listening on port 2301');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST /bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2e883902345179d9034f50392f72183e3f64a93c","contentHash":"36149bc236f26200721bd5de6145cf08bcf089529b779d7213c7c8e2fcba661f"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":22},"end":{"line":7,"column":71}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":61}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":17},"end":{"line":12,"column":51}},"10":{"start":{"line":13,"column":15},"end":{"line":13,"column":47}},"11":{"start":{"line":14,"column":24},"end":{"line":42,"column":1}},"12":{"start":{"line":15,"column":16},"end":{"line":15,"column":40}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":58}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":38}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":35}},"16":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"17":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"18":{"start":{"line":25,"column":4},"end":{"line":25,"column":37}},"19":{"start":{"line":26,"column":4},"end":{"line":26,"column":32}},"20":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"21":{"start":{"line":28,"column":8},"end":{"line":28,"column":39}},"22":{"start":{"line":31,"column":8},"end":{"line":31,"column":39}},"23":{"start":{"line":34,"column":4},"end":{"line":39,"column":7}},"24":{"start":{"line":35,"column":8},"end":{"line":35,"column":33}},"25":{"start":{"line":36,"column":8},"end":{"line":38,"column":81}},"26":{"start":{"line":41,"column":4},"end":{"line":41,"column":44}},"27":{"start":{"line":43,"column":0},"end":{"line":43,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":14,"column":24},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":30},"end":{"line":42,"column":1}},"line":14},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":12},"end":{"line":34,"column":13}},"loc":{"start":{"line":34,"column":33},"end":{"line":39,"column":5}},"line":34}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21},"4":{"loc":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},{"start":{"line":27,"column":4},"end":{"line":32,"column":5}}],"line":27},"5":{"loc":{"start":{"line":27,"column":8},"end":{"line":27,"column":81}},"type":"binary-expr","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":39}},{"start":{"line":27,"column":43},"end":{"line":27,"column":81}}],"line":27}},"s":{"0":1,"1":7,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":3,"13":3,"14":3,"15":3,"16":3,"17":0,"18":3,"19":3,"20":3,"21":0,"22":3,"23":3,"24":0,"25":0,"26":3,"27":1},"f":{"0":7,"1":3,"2":0},"b":{"0":[1,1,1],"1":[0,7],"2":[7,7],"3":[0,3],"4":[0,3],"5":[3,3]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAkD;AAClD,sDAA8B;AAC9B,gDAAwB;AACxB,8DAAqC;AACrC,oDAA4B;AAC5B,oDAA4B;AAE5B,gDAAwB;AAEjB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEtB,aAAa;IACb,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,+CAA+C;IAC3F,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAoB;IAC7C,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC,CAAC,cAAc;IAE/B,UAAU;IACV,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE;QACtC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;KACxB;IAED,WAAW;IACX,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC7E,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;SAAM;QACL,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;IAED,6DAA6D;IAC7D,GAAG,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,CAAC,EAAE,GAAQ,EAAE,EAAE,EAAE,EAAE;QACpC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACzB,GAAG;aACA,MAAM,CAAC,GAAG,CAAC;aACX,IAAI,CAAC,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,oBAAoB;IACpB,OAAO,cAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC;AAjCW,QAAA,eAAe,mBAiC1B","sourcesContent":["import exampleRouter from '../routes/Test.routes';\nimport express from 'express';\nimport cors from 'cors';\nimport bodyparser from 'body-parser';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nimport http from 'http';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(bodyparser.json({ limit: '5mb' })); //file size limit specification to receive PDFs\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n if (process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'development') {\n app.use(exampleRouter);\n } else {\n app.use(exampleRouter);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n app.use((err: any, _, res: any, __) => {\n console.error(err.stack);\n res\n .status(403)\n .send({ message: \"You're not authorized to access this endpoint!\" });\n });\n\n // Create the server\n return http.createServer(app);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"47f63148ead59f979b85a1ede425ee11cf17582e","contentHash":"49bd8b66952e0c8a9cd98dd19934c104f0d22071d08c91d82b0b2c597cdbd40e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"3":{"start":{"line":6,"column":29},"end":{"line":6,"column":89}},"4":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"5":{"start":{"line":8,"column":31},"end":{"line":8,"column":93}},"6":{"start":{"line":9,"column":18},"end":{"line":9,"column":53}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":48}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":75}},"9":{"start":{"line":13,"column":0},"end":{"line":13,"column":79}},"10":{"start":{"line":14,"column":0},"end":{"line":14,"column":72}},"11":{"start":{"line":15,"column":0},"end":{"line":15,"column":82}},"12":{"start":{"line":16,"column":0},"end":{"line":16,"column":31}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{"0":1},"b":{"0":[1,1,1],"1":[0,1],"2":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts"],"names":[],"mappings":";;;;AAAA,gGAA6F;AAC7F,0FAAuF;AACvF,8FAA2F;AAC3F,8FAA2F;AAC3F,sDAA8B;AAE9B,MAAM,aAAa,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAEvC,qBAAqB;AACrB,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,6CAAqB,CAAC,CAAC;AACnD,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,2CAAoB,CAAC,CAAC;AACxD,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,2CAAoB,CAAC,CAAC;AACjD,aAAa,CAAC,GAAG,CAAC,qBAAqB,EAAE,uCAAkB,CAAC,CAAC;AAE7D,iBAAS,aAAa,CAAC","sourcesContent":["import { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport express from 'express';\n\nconst exampleRouter = express.Router();\n\n/* Test Controller */\nexampleRouter.get('/query', queryParameterExample);\nexampleRouter.get('/path/:value', pathParameterExample);\nexampleRouter.get('/body', bodyParameterExample);\nexampleRouter.get('/retrievePassengers', retrievePassengers);\n\nexport = exampleRouter;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b3d98a2caac7f728ac9ebf8787fc5b08e5c88c4d","contentHash":"6edfa5a4123ea38baa847d6b94cdcc9aaeef5b8cfaae82c34375b95e87c139be"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e5058af15d3cc7570d96d9f6f2959b97713d68fa","contentHash":"c0655f166961c81818b792d4f21ca9c7d479bad7d24b73d93ece8ac813fcd6f9"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":16,"column":19},"end":{"line":16,"column":55}},"17":{"start":{"line":17,"column":17},"end":{"line":17,"column":51}},"18":{"start":{"line":18,"column":0},"end":{"line":18,"column":26}},"19":{"start":{"line":21,"column":27},"end":{"line":65,"column":2}},"20":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"21":{"start":{"line":22,"column":4},"end":{"line":22,"column":46}},"22":{"start":{"line":23,"column":17},"end":{"line":25,"column":32}},"23":{"start":{"line":26,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":33,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"26":{"start":{"line":35,"column":16},"end":{"line":35,"column":35}},"27":{"start":{"line":36,"column":16},"end":{"line":36,"column":23}},"28":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":39,"column":35},"end":{"line":41,"column":25}},"30":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":68}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":73}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":21,"column":27},"end":{"line":21,"column":28}},"loc":{"start":{"line":21,"column":41},"end":{"line":65,"column":2}},"line":21},"9":{"name":"(anonymous_9)","decl":{"start":{"line":21,"column":75},"end":{"line":21,"column":76}},"loc":{"start":{"line":21,"column":88},"end":{"line":65,"column":1}},"line":21},"10":{"name":"(anonymous_10)","decl":{"start":{"line":32,"column":19},"end":{"line":32,"column":20}},"loc":{"start":{"line":32,"column":43},"end":{"line":64,"column":5}},"line":32},"11":{"name":"(anonymous_11)","decl":{"start":{"line":33,"column":47},"end":{"line":33,"column":48}},"loc":{"start":{"line":33,"column":60},"end":{"line":63,"column":9}},"line":33},"12":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":47},"end":{"line":39,"column":48}},"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"line":39},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":24,"column":16},"end":{"line":24,"column":50}},"type":"binary-expr","locations":[{"start":{"line":24,"column":16},"end":{"line":24,"column":44}},{"start":{"line":24,"column":48},"end":{"line":24,"column":50}}],"line":24},"9":{"loc":{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},"type":"if","locations":[{"start":{"line":34,"column":12},"end":{"line":37,"column":13}},{"start":{"line":34,"column":12},"end":{"line":37,"column":13}}],"line":34},"10":{"loc":{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":62,"column":13}},{"start":{"line":38,"column":12},"end":{"line":62,"column":13}}],"line":38},"11":{"loc":{"start":{"line":39,"column":57},"end":{"line":41,"column":24}},"type":"cond-expr","locations":[{"start":{"line":40,"column":22},"end":{"line":40,"column":50}},{"start":{"line":41,"column":22},"end":{"line":41,"column":24}}],"line":39},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":2,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KAC3C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,uBAAuB;KAC9B,CAAC;SACD,SAAS,CAAC,UAAgB,GAAG,EAAE,OAAO;;YACrC,IAAI,GAAG,EAAE;gBACP,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnB,OAAO;aACR;YACD,IAAI,OAAO,EAAE;gBACX,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CACtC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,SAAS;oBACxC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;oBAC9B,CAAC,CAAC,EAAE,CACO,CAAC;gBAChB,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;gBAEpD,IAAI;oBACF,MAAM,KAAK,GAAG,EAA0B,CAAC;oBACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,CAAM,IAAI,EAAC,EAAE;wBAC3C,MAAM,iBAAiB,GAAG,EAAwB,CAAC;wBACnD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAM,WAAW,EAAC,EAAE;4BAChD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CACpD,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,KAAI,EAAE,CAC9B,CAAC,CAAC,sCAAsC;4BACzC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAC1C,CAAC,CAAA,CAAC,CAAC;wBACH,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;wBAChC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;oBAChC,CAAC,CAAA,CAAC,CAAC;oBAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAE5B,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;oBAErD,6CAA6C;oBAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC7B;gBAAC,OAAO,GAAG,EAAE;oBACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;aACF;QACH,CAAC;KAAA,CAAC,CAAC;AACP,CAAC,CAAA,CAAC;AAnDW,QAAA,kBAAkB,sBAmD7B","sourcesContent":["import Airtable from 'airtable';\nimport dotenv from 'dotenv';\nimport type { FieldSet, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n console.log(process.env.AIRTABLE_API_KEY);\n\n const base = new Airtable({\n apiKey: process.env.AIRTABLE_API_KEY || '',\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n console.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record =>\n record.fields['Flight Legs'] !== undefined\n ? record.fields['Flight Legs']\n : []\n ) as string[][];\n console.log('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(\n flightLegId?.toString() || ''\n ); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n });\n\n await Promise.all(promises);\n\n console.log('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch (err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"fe1ade0a5d53988d69f6cc8be0f95e299471388c","contentHash":"80abbd2773c85413f65141a8ae75298fcc27abd3a898d5e2bb9b9d65b77cb9b8"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f86c11dbc26b774d42ac4f8e84b2d923c64c37cd","contentHash":"c1c714e0dc35fb4a6ba996a18fafa043d75d20ca7064113566b05dab73e4d75e"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"5c6d6c4aa84f4cdb6716ee593786b0a56f5cc7a0","contentHash":"c8055e101ceb2f1c6013ae6538268de1ef36e0d6de823428a8e11ffa0b6864bb"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":73,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":141}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":72,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":71,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":33},"end":{"line":53,"column":34}},"loc":{"start":{"line":53,"column":39},"end":{"line":73,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":66},"end":{"line":54,"column":67}},"loc":{"start":{"line":54,"column":74},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":61},"end":{"line":64,"column":62}},"loc":{"start":{"line":64,"column":69},"end":{"line":72,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":3,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1},"f":{"0":11,"1":3,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,yDAAyD,EAAE,IAAI,CAAC,EAAE;QACnE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,WAAW,CAAC;aAChB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,yFAAyF,CAC1F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,IAAI,CAAC,EAAE;QAC9D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2303, () => {\n console.log('Mock server listening on port 2303');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"dcededb0f8a75ca7d6a68ef7e2e980092f50ff2e","contentHash":"59c36e22430a03463b966670753b5817cc5d15e81c2974c67a4058b03e8f086d"},"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":{"path":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":142}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":70}},"52":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":34},"end":{"line":53,"column":35}},"loc":{"start":{"line":53,"column":40},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":67},"end":{"line":54,"column":68}},"loc":{"start":{"line":54,"column":75},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":62},"end":{"line":64,"column":63}},"loc":{"start":{"line":64,"column":70},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":72,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":4,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1},"f":{"0":11,"1":4,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","sources":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,0DAA0D,EAAE,IAAI,CAAC,EAAE;QACpE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,iBAAiB,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,0FAA0F,CAC3F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,IAAI,CAAC,EAAE;QAC/D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,QAAQ,CAAC;aACb,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC9C,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2302, () => {\n console.log('Mock server listening on port 2302');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"2d0d4e29bea716c5805b0f2b2fa8721c970ba6b0","contentHash":"428ae023c5eaa79f800693f741dc8b4ff9e721692bf8ee5c5e205004d3807c5c"}} \ No newline at end of file diff --git a/.nyc_output/b8545892-70f7-4afa-9fc8-a6f96acb4fc8.json b/.nyc_output/b8545892-70f7-4afa-9fc8-a6f96acb4fc8.json deleted file mode 100644 index 8037b23..0000000 --- a/.nyc_output/b8545892-70f7-4afa-9fc8-a6f96acb4fc8.json +++ /dev/null @@ -1 +0,0 @@ -{"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":60,"column":12},"end":{"line":60,"column":56}},"46":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"47":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"48":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"49":{"start":{"line":70,"column":12},"end":{"line":70,"column":56}},"50":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":39},"end":{"line":53,"column":40}},"loc":{"start":{"line":53,"column":45},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":39},"end":{"line":54,"column":40}},"loc":{"start":{"line":54,"column":47},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":59,"column":17},"end":{"line":59,"column":18}},"loc":{"start":{"line":59,"column":31},"end":{"line":62,"column":9}},"line":59},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":39},"end":{"line":64,"column":40}},"loc":{"start":{"line":64,"column":47},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":69,"column":17},"end":{"line":69,"column":18}},"loc":{"start":{"line":69,"column":31},"end":{"line":72,"column":9}},"line":69}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":10,"2":10,"3":10,"4":10,"5":10,"6":2,"7":10,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":10,"21":10,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1},"f":{"0":10,"1":2,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[10,0],"3":[10,0],"4":[10,10],"5":[0,10],"6":[10,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[10,0],"15":[10,10],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,YAAY;AACZ,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,8BAA8B,EAAE,IAAI,CAAC,EAAE;QACxC,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;aAClB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2301, () => {\n console.log('Mock server listening on port 2301');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// Test case\ndescribe('POST /bodyParameterExample', () => {\n it('should return a 418 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: 'Test' })\n .end((err, res) => {\n expect(res).to.have.status(418);\n done();\n });\n });\n it('should return a 400 response', done => {\n chai\n .request(app)\n .get('/body')\n .send({ name: '' })\n .end((err, res) => {\n expect(res).to.have.status(400);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e919b18b7d60a9cd9cb2c5aadd75fb617138232d","contentHash":"9d533029a315254f421615811be8c75bbc17f476881a3b350bef6384d7b49d3c"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":62}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":33}},"4":{"start":{"line":7,"column":22},"end":{"line":7,"column":71}},"5":{"start":{"line":8,"column":18},"end":{"line":8,"column":53}},"6":{"start":{"line":9,"column":15},"end":{"line":9,"column":47}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":61}},"8":{"start":{"line":11,"column":17},"end":{"line":11,"column":51}},"9":{"start":{"line":12,"column":17},"end":{"line":12,"column":51}},"10":{"start":{"line":13,"column":15},"end":{"line":13,"column":47}},"11":{"start":{"line":14,"column":24},"end":{"line":42,"column":1}},"12":{"start":{"line":15,"column":16},"end":{"line":15,"column":40}},"13":{"start":{"line":17,"column":4},"end":{"line":17,"column":58}},"14":{"start":{"line":18,"column":4},"end":{"line":18,"column":38}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":35}},"16":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"17":{"start":{"line":22,"column":8},"end":{"line":22,"column":46}},"18":{"start":{"line":25,"column":4},"end":{"line":25,"column":37}},"19":{"start":{"line":26,"column":4},"end":{"line":26,"column":32}},"20":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"21":{"start":{"line":28,"column":8},"end":{"line":28,"column":39}},"22":{"start":{"line":31,"column":8},"end":{"line":31,"column":39}},"23":{"start":{"line":34,"column":4},"end":{"line":39,"column":7}},"24":{"start":{"line":35,"column":8},"end":{"line":35,"column":33}},"25":{"start":{"line":36,"column":8},"end":{"line":38,"column":81}},"26":{"start":{"line":41,"column":4},"end":{"line":41,"column":44}},"27":{"start":{"line":43,"column":0},"end":{"line":43,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":14,"column":24},"end":{"line":14,"column":25}},"loc":{"start":{"line":14,"column":30},"end":{"line":42,"column":1}},"line":14},"2":{"name":"(anonymous_2)","decl":{"start":{"line":34,"column":12},"end":{"line":34,"column":13}},"loc":{"start":{"line":34,"column":33},"end":{"line":39,"column":5}},"line":34}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":23,"column":5}},{"start":{"line":21,"column":4},"end":{"line":23,"column":5}}],"line":21},"4":{"loc":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},{"start":{"line":27,"column":4},"end":{"line":32,"column":5}}],"line":27},"5":{"loc":{"start":{"line":27,"column":8},"end":{"line":27,"column":81}},"type":"binary-expr","locations":[{"start":{"line":27,"column":8},"end":{"line":27,"column":39}},{"start":{"line":27,"column":43},"end":{"line":27,"column":81}}],"line":27}},"s":{"0":1,"1":7,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":3,"13":3,"14":3,"15":3,"16":3,"17":0,"18":3,"19":3,"20":3,"21":0,"22":3,"23":3,"24":0,"25":0,"26":3,"27":1},"f":{"0":7,"1":3,"2":0},"b":{"0":[1,1,1],"1":[0,7],"2":[7,7],"3":[0,3],"4":[0,3],"5":[3,3]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAkD;AAClD,sDAA8B;AAC9B,gDAAwB;AACxB,8DAAqC;AACrC,oDAA4B;AAC5B,oDAA4B;AAE5B,gDAAwB;AAEjB,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IAEtB,aAAa;IACb,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,+CAA+C;IAC3F,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,oBAAoB;IAC7C,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,GAAE,CAAC,CAAC,CAAC,cAAc;IAE/B,UAAU;IACV,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM,EAAE;QACtC,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;KACxB;IAED,WAAW;IACX,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,GAAE,CAAC,CAAC;IAClB,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE5B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC7E,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;SAAM;QACL,GAAG,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KACxB;IAED,6DAA6D;IAC7D,GAAG,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,CAAC,EAAE,GAAQ,EAAE,EAAE,EAAE,EAAE;QACpC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACzB,GAAG;aACA,MAAM,CAAC,GAAG,CAAC;aACX,IAAI,CAAC,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEH,oBAAoB;IACpB,OAAO,cAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC;AAjCW,QAAA,eAAe,mBAiC1B","sourcesContent":["import exampleRouter from '../routes/Test.routes';\nimport express from 'express';\nimport cors from 'cors';\nimport bodyparser from 'body-parser';\nimport helmet from 'helmet';\nimport morgan from 'morgan';\n\nimport http from 'http';\n\nexport const configureServer = () => {\n const app = express();\n\n // Middleware\n app.use(bodyparser.json({ limit: '5mb' })); //file size limit specification to receive PDFs\n app.use(express.json()); // Parse JSON bodies\n app.use(cors()); // Enable CORS\n\n // Logging\n if (process.env.ENVIRONMENT !== 'test') {\n app.use(morgan('dev'));\n }\n\n // Security\n app.use(helmet());\n app.disable('x-powered-by');\n\n if (process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'development') {\n app.use(exampleRouter);\n } else {\n app.use(exampleRouter);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n app.use((err: any, _, res: any, __) => {\n console.error(err.stack);\n res\n .status(403)\n .send({ message: \"You're not authorized to access this endpoint!\" });\n });\n\n // Create the server\n return http.createServer(app);\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c92f8a0a8f9c3ae2ac3a9b2ccd6b466e3dcf803e","contentHash":"4d1989882eb31a46d3173e6fdcf4cb74a2349063701c56889cf0d584c5bc75b0"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":62}},"2":{"start":{"line":5,"column":32},"end":{"line":5,"column":95}},"3":{"start":{"line":6,"column":29},"end":{"line":6,"column":89}},"4":{"start":{"line":7,"column":31},"end":{"line":7,"column":93}},"5":{"start":{"line":8,"column":31},"end":{"line":8,"column":93}},"6":{"start":{"line":9,"column":18},"end":{"line":9,"column":53}},"7":{"start":{"line":10,"column":22},"end":{"line":10,"column":48}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":75}},"9":{"start":{"line":13,"column":0},"end":{"line":13,"column":79}},"10":{"start":{"line":14,"column":0},"end":{"line":14,"column":72}},"11":{"start":{"line":15,"column":0},"end":{"line":15,"column":82}},"12":{"start":{"line":16,"column":0},"end":{"line":16,"column":31}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":56},"end":{"line":2,"column":57}},"loc":{"start":{"line":2,"column":71},"end":{"line":4,"column":1}},"line":2}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":56},"end":{"line":4,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":61}},"type":"cond-expr","locations":[{"start":{"line":3,"column":37},"end":{"line":3,"column":40}},{"start":{"line":3,"column":43},"end":{"line":3,"column":61}}],"line":3},"2":{"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":33}},"type":"binary-expr","locations":[{"start":{"line":3,"column":12},"end":{"line":3,"column":15}},{"start":{"line":3,"column":19},"end":{"line":3,"column":33}}],"line":3}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1},"f":{"0":1},"b":{"0":[1,1,1],"1":[0,1],"2":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts"],"names":[],"mappings":";;;;AAAA,gGAA6F;AAC7F,0FAAuF;AACvF,8FAA2F;AAC3F,8FAA2F;AAC3F,sDAA8B;AAE9B,MAAM,aAAa,GAAG,iBAAO,CAAC,MAAM,EAAE,CAAC;AAEvC,qBAAqB;AACrB,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,6CAAqB,CAAC,CAAC;AACnD,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,2CAAoB,CAAC,CAAC;AACxD,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,2CAAoB,CAAC,CAAC;AACjD,aAAa,CAAC,GAAG,CAAC,qBAAqB,EAAE,uCAAkB,CAAC,CAAC;AAE7D,iBAAS,aAAa,CAAC","sourcesContent":["import { queryParameterExample } from '../controllers/TestControllers/queryParameterExample';\nimport { retrievePassengers } from '../controllers/TestControllers/retrievePassengers';\nimport { pathParameterExample } from '../controllers/TestControllers/pathParameterExample';\nimport { bodyParameterExample } from '../controllers/TestControllers/bodyParameterExample';\nimport express from 'express';\n\nconst exampleRouter = express.Router();\n\n/* Test Controller */\nexampleRouter.get('/query', queryParameterExample);\nexampleRouter.get('/path/:value', pathParameterExample);\nexampleRouter.get('/body', bodyParameterExample);\nexampleRouter.get('/retrievePassengers', retrievePassengers);\n\nexport = exampleRouter;\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"c197a121a57bbc36b2a3ec9bb5783211a4d2f52c","contentHash":"18ea100bf32934f1d078044a50674363a450fb24901d916a0b6716e208007e1c"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":39}},"14":{"start":{"line":13,"column":30},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":30}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":54}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":44},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":78},"end":{"line":13,"column":79}},"loc":{"start":{"line":13,"column":91},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,qBAAqB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;IAC3B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,GAAG,CAAC,KAAK,CAAC,IAAI;QACd,mCAAmC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAXW,QAAA,qBAAqB,yBAWhC","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const queryParameterExample = async (req: Request, res: Response) => {\n const { name } = req.query;\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n req.query.name +\n '. Great use of a query parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a1dde1589da5f256cad5707359308f8d826361e7","contentHash":"ef260a9a757ab0994bb6bfec2b4352ee8632b265b4cbe9426041cac7305de717"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"13":{"start":{"line":12,"column":4},"end":{"line":12,"column":62}},"14":{"start":{"line":14,"column":0},"end":{"line":14,"column":62}},"15":{"start":{"line":15,"column":0},"end":{"line":15,"column":36}},"16":{"start":{"line":18,"column":19},"end":{"line":18,"column":55}},"17":{"start":{"line":19,"column":17},"end":{"line":19,"column":51}},"18":{"start":{"line":20,"column":0},"end":{"line":20,"column":26}},"19":{"start":{"line":23,"column":27},"end":{"line":65,"column":2}},"20":{"start":{"line":23,"column":41},"end":{"line":65,"column":2}},"21":{"start":{"line":24,"column":4},"end":{"line":24,"column":46}},"22":{"start":{"line":25,"column":17},"end":{"line":27,"column":32}},"23":{"start":{"line":28,"column":4},"end":{"line":64,"column":7}},"24":{"start":{"line":35,"column":8},"end":{"line":63,"column":11}},"25":{"start":{"line":36,"column":12},"end":{"line":39,"column":13}},"26":{"start":{"line":37,"column":16},"end":{"line":37,"column":35}},"27":{"start":{"line":38,"column":16},"end":{"line":38,"column":23}},"28":{"start":{"line":40,"column":12},"end":{"line":62,"column":13}},"29":{"start":{"line":41,"column":35},"end":{"line":41,"column":136}},"30":{"start":{"line":41,"column":57},"end":{"line":41,"column":135}},"31":{"start":{"line":42,"column":16},"end":{"line":42,"column":68}},"32":{"start":{"line":43,"column":16},"end":{"line":61,"column":17}},"33":{"start":{"line":44,"column":34},"end":{"line":44,"column":36}},"34":{"start":{"line":45,"column":37},"end":{"line":53,"column":23}},"35":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"36":{"start":{"line":46,"column":50},"end":{"line":46,"column":52}},"37":{"start":{"line":47,"column":45},"end":{"line":50,"column":27}},"38":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"39":{"start":{"line":48,"column":52},"end":{"line":48,"column":172}},"40":{"start":{"line":49,"column":28},"end":{"line":49,"column":68}},"41":{"start":{"line":51,"column":24},"end":{"line":51,"column":56}},"42":{"start":{"line":52,"column":24},"end":{"line":52,"column":54}},"43":{"start":{"line":54,"column":20},"end":{"line":54,"column":48}},"44":{"start":{"line":55,"column":20},"end":{"line":55,"column":73}},"45":{"start":{"line":57,"column":20},"end":{"line":57,"column":48}},"46":{"start":{"line":60,"column":20},"end":{"line":60,"column":39}},"47":{"start":{"line":66,"column":0},"end":{"line":66,"column":48}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":11,"column":56},"end":{"line":11,"column":57}},"loc":{"start":{"line":11,"column":71},"end":{"line":13,"column":1}},"line":11},"8":{"name":"(anonymous_8)","decl":{"start":{"line":23,"column":27},"end":{"line":23,"column":28}},"loc":{"start":{"line":23,"column":41},"end":{"line":65,"column":2}},"line":23},"9":{"name":"(anonymous_9)","decl":{"start":{"line":23,"column":75},"end":{"line":23,"column":76}},"loc":{"start":{"line":23,"column":88},"end":{"line":65,"column":1}},"line":23},"10":{"name":"(anonymous_10)","decl":{"start":{"line":34,"column":19},"end":{"line":34,"column":20}},"loc":{"start":{"line":34,"column":43},"end":{"line":64,"column":5}},"line":34},"11":{"name":"(anonymous_11)","decl":{"start":{"line":35,"column":47},"end":{"line":35,"column":48}},"loc":{"start":{"line":35,"column":60},"end":{"line":63,"column":9}},"line":35},"12":{"name":"(anonymous_12)","decl":{"start":{"line":41,"column":47},"end":{"line":41,"column":48}},"loc":{"start":{"line":41,"column":57},"end":{"line":41,"column":135}},"line":41},"13":{"name":"(anonymous_13)","decl":{"start":{"line":45,"column":52},"end":{"line":45,"column":53}},"loc":{"start":{"line":45,"column":62},"end":{"line":53,"column":22}},"line":45},"14":{"name":"(anonymous_14)","decl":{"start":{"line":45,"column":94},"end":{"line":45,"column":95}},"loc":{"start":{"line":45,"column":107},"end":{"line":53,"column":21}},"line":45},"15":{"name":"(anonymous_15)","decl":{"start":{"line":47,"column":54},"end":{"line":47,"column":55}},"loc":{"start":{"line":47,"column":71},"end":{"line":50,"column":26}},"line":47},"16":{"name":"(anonymous_16)","decl":{"start":{"line":47,"column":103},"end":{"line":47,"column":104}},"loc":{"start":{"line":47,"column":116},"end":{"line":50,"column":25}},"line":47}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":11,"column":22},"end":{"line":13,"column":1}},"type":"binary-expr","locations":[{"start":{"line":11,"column":23},"end":{"line":11,"column":27}},{"start":{"line":11,"column":31},"end":{"line":11,"column":51}},{"start":{"line":11,"column":56},"end":{"line":13,"column":1}}],"line":11},"6":{"loc":{"start":{"line":12,"column":11},"end":{"line":12,"column":61}},"type":"cond-expr","locations":[{"start":{"line":12,"column":37},"end":{"line":12,"column":40}},{"start":{"line":12,"column":43},"end":{"line":12,"column":61}}],"line":12},"7":{"loc":{"start":{"line":12,"column":12},"end":{"line":12,"column":33}},"type":"binary-expr","locations":[{"start":{"line":12,"column":12},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":33}}],"line":12},"8":{"loc":{"start":{"line":26,"column":16},"end":{"line":26,"column":50}},"type":"binary-expr","locations":[{"start":{"line":26,"column":16},"end":{"line":26,"column":44}},{"start":{"line":26,"column":48},"end":{"line":26,"column":50}}],"line":26},"9":{"loc":{"start":{"line":36,"column":12},"end":{"line":39,"column":13}},"type":"if","locations":[{"start":{"line":36,"column":12},"end":{"line":39,"column":13}},{"start":{"line":36,"column":12},"end":{"line":39,"column":13}}],"line":36},"10":{"loc":{"start":{"line":40,"column":12},"end":{"line":62,"column":13}},"type":"if","locations":[{"start":{"line":40,"column":12},"end":{"line":62,"column":13}},{"start":{"line":40,"column":12},"end":{"line":62,"column":13}}],"line":40},"11":{"loc":{"start":{"line":41,"column":57},"end":{"line":41,"column":135}},"type":"cond-expr","locations":[{"start":{"line":41,"column":102},"end":{"line":41,"column":130}},{"start":{"line":41,"column":133},"end":{"line":41,"column":135}}],"line":41},"12":{"loc":{"start":{"line":48,"column":83},"end":{"line":48,"column":171}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},{"start":{"line":48,"column":169},"end":{"line":48,"column":171}}],"line":48},"13":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":164}},"type":"cond-expr","locations":[{"start":{"line":48,"column":133},"end":{"line":48,"column":139}},{"start":{"line":48,"column":142},"end":{"line":48,"column":164}}],"line":48},"14":{"loc":{"start":{"line":48,"column":84},"end":{"line":48,"column":130}},"type":"binary-expr","locations":[{"start":{"line":48,"column":84},"end":{"line":48,"column":104}},{"start":{"line":48,"column":108},"end":{"line":48,"column":130}}],"line":48}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":1,"13":2,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":2,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0},"b":{"0":[1,1,1],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[1,1,1],"6":[0,2],"7":[2,2],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,sDAAsD;AACtD,wDAAgC;AAChC,oDAA4B;AAG5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,+FAA+F;AAC/F,6DAA6D;AACtD,MAAM,kBAAkB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACtE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,IAAI,kBAAQ,CAAC;QACxB,MAAM,EACJ,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE;KACrC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE7B,IAAI,CAAC,yBAAyB,CAAC;SAC5B,MAAM,CAAC;QACN,0DAA0D;QAC1D,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,uBAAuB;KAC9B,CAAC;SACD,SAAS,CAAC,UAAgB,GAAG,EAAE,OAAO;;YACrC,IAAI,GAAG,EAAE;gBACL,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnB,OAAO;aACV;YACD,IAAI,OAAO,EAAE;gBACT,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAe,CAAC;gBACvI,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAC;gBAEpD,IAAI;oBAEJ,MAAM,KAAK,GAAG,EAA0B,CAAC;oBACzC,MAAM,QAAQ,GAAG,UAAU,CAAC,GAAG,CAAC,CAAM,IAAI,EAAC,EAAE;wBAC3C,MAAM,iBAAiB,GAAG,EAAwB,CAAC;wBACnD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAM,WAAW,EAAC,EAAE;4BAChD,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,EAAE,KAAI,EAAE,CAAC,CAAC,CAAC,sCAAsC;4BAC7H,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;wBAC1C,CAAC,CAAA,CAAC,CAAC;wBACH,MAAM,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;wBAChC,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;oBAEhC,CAAC,CAAA,CAAC,CAAC;oBAEH,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;oBAE5B,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;oBAErD,6CAA6C;oBAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC3B;gBAAC,OAAM,GAAG,EAAE;oBACX,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;aACJ;QACL,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAhDW,QAAA,kBAAkB,sBAgD7B","sourcesContent":["/* eslint-disable autofix/no-unused-vars */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport Airtable from 'airtable';\nimport dotenv from 'dotenv';\nimport type { FieldSet, Record } from 'airtable';\nimport type { Request, Response } from 'express';\ndotenv.config();\n\n// Example endpoint that uses the AirTable API to retrieve all the passengers in the example db\n// THIS IS A TEST ENDPOINT AND IT IS STILL A WORK IN PROGRESS\nexport const retrievePassengers = async (req: Request, res: Response) => {\n console.log(process.env.AIRTABLE_API_KEY);\n\n const base = new Airtable({\n apiKey:\n process.env.AIRTABLE_API_KEY || \"\",\n }).base('appwPsfAb6U8CV3mf');\n\n base('Flight Requests (Trips)')\n .select({\n // Selecting the first 3 records in All Requests [MASTER]:\n maxRecords: 100,\n view: 'All Requests [MASTER]',\n })\n .firstPage(async function (err, records) {\n if (err) {\n console.error(err);\n return;\n }\n if (records) {\n const flightLegs = records.map(record => record.fields[\"Flight Legs\"] !== undefined ? record.fields[\"Flight Legs\"] : []) as string[][];\n console.log('Retrieved Flight Leg IDs', flightLegs);\n\n try {\n\n const trips = [] as Record
[][];\n const promises = flightLegs.map(async trip => {\n const flightLegsForTrip = [] as Record
[];\n const tripPromises = trip.map(async flightLegId => {\n const flightLegRecord = await base('Flight Legs').find(flightLegId?.toString() || ''); // Replace with your actual table name\n flightLegsForTrip.push(flightLegRecord);\n });\n await Promise.all(tripPromises);\n trips.push(flightLegsForTrip);\n \n });\n\n await Promise.all(promises);\n\n console.log('Retrieved trips of flight legs', trips);\n\n // Send the response or do further processing\n res.status(200).send(trips);\n } catch(err) {\n console.error(err);\n }\n }\n });\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"43684ebb40997c3e9ced71252d9d23686305b6ef","contentHash":"895bb36a9068a896159175c3ded97cac83c1fb2a7797e67c3ee8ab3db1d79ebd"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":22},"end":{"line":14,"column":32}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":44}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":0,"19":1,"20":1},"f":{"0":1,"1":0,"2":0,"3":1,"4":0,"5":0,"6":1,"7":1,"8":1},"b":{"0":[1,1,1],"1":[0,0],"2":[1,1],"3":[1,0],"4":[1,1],"5":[0,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE5D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,KAAK;QACL,kCAAkC,CACrC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const pathParameterExample = async (req: Request, res: Response) => {\n const { value } = req.params;\n\n if (!value) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n value +\n '. Great use of a path parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"98ebc7c086bfb491fa51efc786d37cc1d985d87f","contentHash":"ff0f05e2206d25b39ccb247fbf915b2e946b5edc45a3cd61acce3c34c7ebb447"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","statementMap":{"0":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"1":{"start":{"line":3,"column":28},"end":{"line":3,"column":110}},"2":{"start":{"line":3,"column":91},"end":{"line":3,"column":106}},"3":{"start":{"line":4,"column":4},"end":{"line":9,"column":7}},"4":{"start":{"line":5,"column":36},"end":{"line":5,"column":97}},"5":{"start":{"line":5,"column":42},"end":{"line":5,"column":70}},"6":{"start":{"line":5,"column":85},"end":{"line":5,"column":95}},"7":{"start":{"line":6,"column":35},"end":{"line":6,"column":100}},"8":{"start":{"line":6,"column":41},"end":{"line":6,"column":73}},"9":{"start":{"line":6,"column":88},"end":{"line":6,"column":98}},"10":{"start":{"line":7,"column":32},"end":{"line":7,"column":116}},"11":{"start":{"line":8,"column":8},"end":{"line":8,"column":78}},"12":{"start":{"line":11,"column":0},"end":{"line":11,"column":62}},"13":{"start":{"line":12,"column":0},"end":{"line":12,"column":38}},"14":{"start":{"line":13,"column":29},"end":{"line":22,"column":2}},"15":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"16":{"start":{"line":14,"column":21},"end":{"line":14,"column":29}},"17":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"18":{"start":{"line":16,"column":8},"end":{"line":16,"column":56}},"19":{"start":{"line":17,"column":4},"end":{"line":21,"column":45}},"20":{"start":{"line":23,"column":0},"end":{"line":23,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":44},"end":{"line":2,"column":45}},"loc":{"start":{"line":2,"column":89},"end":{"line":10,"column":1}},"line":2},"1":{"name":"adopt","decl":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":26},"end":{"line":3,"column":112}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":70},"end":{"line":3,"column":71}},"loc":{"start":{"line":3,"column":89},"end":{"line":3,"column":108}},"line":3},"3":{"name":"(anonymous_3)","decl":{"start":{"line":4,"column":36},"end":{"line":4,"column":37}},"loc":{"start":{"line":4,"column":63},"end":{"line":9,"column":5}},"line":4},"4":{"name":"fulfilled","decl":{"start":{"line":5,"column":17},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":34},"end":{"line":5,"column":99}},"line":5},"5":{"name":"rejected","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":25}},"loc":{"start":{"line":6,"column":33},"end":{"line":6,"column":102}},"line":6},"6":{"name":"step","decl":{"start":{"line":7,"column":17},"end":{"line":7,"column":21}},"loc":{"start":{"line":7,"column":30},"end":{"line":7,"column":118}},"line":7},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":29},"end":{"line":13,"column":30}},"loc":{"start":{"line":13,"column":43},"end":{"line":22,"column":2}},"line":13},"8":{"name":"(anonymous_8)","decl":{"start":{"line":13,"column":77},"end":{"line":13,"column":78}},"loc":{"start":{"line":13,"column":90},"end":{"line":22,"column":1}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":16},"end":{"line":10,"column":1}},"type":"binary-expr","locations":[{"start":{"line":2,"column":17},"end":{"line":2,"column":21}},{"start":{"line":2,"column":25},"end":{"line":2,"column":39}},{"start":{"line":2,"column":44},"end":{"line":10,"column":1}}],"line":2},"1":{"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":109}},"type":"cond-expr","locations":[{"start":{"line":3,"column":56},"end":{"line":3,"column":61}},{"start":{"line":3,"column":64},"end":{"line":3,"column":109}}],"line":3},"2":{"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":34}},"type":"binary-expr","locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":17}},{"start":{"line":4,"column":22},"end":{"line":4,"column":33}}],"line":4},"3":{"loc":{"start":{"line":7,"column":32},"end":{"line":7,"column":115}},"type":"cond-expr","locations":[{"start":{"line":7,"column":46},"end":{"line":7,"column":67}},{"start":{"line":7,"column":70},"end":{"line":7,"column":115}}],"line":7},"4":{"loc":{"start":{"line":8,"column":51},"end":{"line":8,"column":67}},"type":"binary-expr","locations":[{"start":{"line":8,"column":51},"end":{"line":8,"column":61}},{"start":{"line":8,"column":65},"end":{"line":8,"column":67}}],"line":8},"5":{"loc":{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},"type":"if","locations":[{"start":{"line":15,"column":4},"end":{"line":16,"column":56}},{"start":{"line":15,"column":4},"end":{"line":16,"column":56}}],"line":15}},"s":{"0":1,"1":0,"2":0,"3":2,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2,"11":2,"12":1,"13":1,"14":1,"15":2,"16":2,"17":2,"18":1,"19":1,"20":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":0,"5":0,"6":2,"7":2,"8":2},"b":{"0":[1,1,1],"1":[0,0],"2":[2,2],"3":[2,0],"4":[2,2],"5":[1,1]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEO,MAAM,oBAAoB,GAAG,CAAO,GAAY,EAAE,GAAa,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAE1B,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAE3D,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CACH,sDAAsD;QACpD,IAAI;QACJ,CAAC,kCAAkC,CACtC,CAAC;AACN,CAAC,CAAA,CAAC;AAZW,QAAA,oBAAoB,wBAY/B","sourcesContent":["import type { Request, Response } from 'express';\n\nexport const bodyParameterExample = async (req: Request, res: Response) => {\n const { name } = req.body;\n\n if (!name) return res.status(400).send('Name is required');\n\n res\n .status(418)\n .send(\n 'I cant make coffee! Thanks for your request though, ' +\n name +\n +'. Great use of a body parameter!'\n );\n};\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"9a23d3cdec1a4d04a343ebb79baf61132826aba7","contentHash":"e74ba7948f87fcd6e0b0f5d161a2d7ef6a6239cc92933ff738f8e9f86a8a552d"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":73,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":141}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":72,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":71,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":33},"end":{"line":53,"column":34}},"loc":{"start":{"line":53,"column":39},"end":{"line":73,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":66},"end":{"line":54,"column":67}},"loc":{"start":{"line":54,"column":74},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":61},"end":{"line":64,"column":62}},"loc":{"start":{"line":64,"column":69},"end":{"line":72,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":71,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":3,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1},"f":{"0":11,"1":3,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,yDAAyD,EAAE,IAAI,CAAC,EAAE;QACnE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,WAAW,CAAC;aAChB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,yFAAyF,CAC1F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,IAAI,CAAC,EAAE;QAC9D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;aACZ,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2303, () => {\n console.log('Mock server listening on port 2303');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('pathParameterExample', () => {\n it('should return 418 and a message with the path parameter', done => {\n chai\n .request(app)\n .get('/path/Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a path parameter!'\n );\n done();\n });\n });\n\n it('should return 404 if no path parameter is provided', done => {\n chai\n .request(app)\n .get('/path')\n .end((err, res) => {\n expect(res).to.have.status(404);\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"43ace7e5ed89bf9cc4e35965663390a2b3456a3a","contentHash":"ee9be7857bfcd27cbc334531306d975e123178d977d081290b33075a820566bd"},"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":{"path":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","statementMap":{"0":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"1":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"2":{"start":{"line":3,"column":26},"end":{"line":3,"column":33}},"3":{"start":{"line":4,"column":15},"end":{"line":4,"column":52}},"4":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"5":{"start":{"line":6,"column":6},"end":{"line":6,"column":68}},"6":{"start":{"line":6,"column":51},"end":{"line":6,"column":63}},"7":{"start":{"line":8,"column":4},"end":{"line":8,"column":39}},"8":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"9":{"start":{"line":10,"column":26},"end":{"line":10,"column":33}},"10":{"start":{"line":11,"column":4},"end":{"line":11,"column":17}},"11":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":72}},"13":{"start":{"line":16,"column":4},"end":{"line":16,"column":21}},"14":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"15":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"16":{"start":{"line":19,"column":31},"end":{"line":19,"column":42}},"17":{"start":{"line":20,"column":17},"end":{"line":20,"column":19}},"18":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"19":{"start":{"line":21,"column":21},"end":{"line":21,"column":141}},"20":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"21":{"start":{"line":21,"column":109},"end":{"line":21,"column":141}},"22":{"start":{"line":22,"column":4},"end":{"line":22,"column":36}},"23":{"start":{"line":23,"column":4},"end":{"line":23,"column":18}},"24":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"25":{"start":{"line":26,"column":4},"end":{"line":26,"column":62}},"26":{"start":{"line":28,"column":0},"end":{"line":28,"column":62}},"27":{"start":{"line":29,"column":24},"end":{"line":29,"column":58}},"28":{"start":{"line":30,"column":20},"end":{"line":30,"column":57}},"29":{"start":{"line":31,"column":17},"end":{"line":31,"column":51}},"30":{"start":{"line":32,"column":15},"end":{"line":32,"column":44}},"31":{"start":{"line":33,"column":0},"end":{"line":33,"column":26}},"32":{"start":{"line":35,"column":0},"end":{"line":35,"column":40}},"33":{"start":{"line":36,"column":0},"end":{"line":36,"column":24}},"34":{"start":{"line":38,"column":12},"end":{"line":38,"column":50}},"35":{"start":{"line":41,"column":0},"end":{"line":46,"column":3}},"36":{"start":{"line":42,"column":4},"end":{"line":45,"column":7}},"37":{"start":{"line":43,"column":8},"end":{"line":43,"column":58}},"38":{"start":{"line":44,"column":8},"end":{"line":44,"column":15}},"39":{"start":{"line":48,"column":0},"end":{"line":51,"column":3}},"40":{"start":{"line":49,"column":4},"end":{"line":49,"column":19}},"41":{"start":{"line":50,"column":4},"end":{"line":50,"column":11}},"42":{"start":{"line":53,"column":0},"end":{"line":74,"column":3}},"43":{"start":{"line":54,"column":4},"end":{"line":63,"column":7}},"44":{"start":{"line":55,"column":8},"end":{"line":62,"column":11}},"45":{"start":{"line":59,"column":12},"end":{"line":59,"column":56}},"46":{"start":{"line":60,"column":12},"end":{"line":60,"column":142}},"47":{"start":{"line":61,"column":12},"end":{"line":61,"column":19}},"48":{"start":{"line":64,"column":4},"end":{"line":73,"column":7}},"49":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"50":{"start":{"line":69,"column":12},"end":{"line":69,"column":56}},"51":{"start":{"line":70,"column":12},"end":{"line":70,"column":70}},"52":{"start":{"line":71,"column":12},"end":{"line":71,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":2,"column":74},"end":{"line":2,"column":75}},"loc":{"start":{"line":2,"column":96},"end":{"line":9,"column":1}},"line":2},"1":{"name":"(anonymous_1)","decl":{"start":{"line":6,"column":38},"end":{"line":6,"column":39}},"loc":{"start":{"line":6,"column":49},"end":{"line":6,"column":65}},"line":6},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":6},"end":{"line":9,"column":7}},"loc":{"start":{"line":9,"column":28},"end":{"line":12,"column":1}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":80},"end":{"line":13,"column":81}},"loc":{"start":{"line":13,"column":95},"end":{"line":15,"column":1}},"line":13},"4":{"name":"(anonymous_4)","decl":{"start":{"line":15,"column":5},"end":{"line":15,"column":6}},"loc":{"start":{"line":15,"column":20},"end":{"line":17,"column":1}},"line":15},"5":{"name":"(anonymous_5)","decl":{"start":{"line":18,"column":50},"end":{"line":18,"column":51}},"loc":{"start":{"line":18,"column":65},"end":{"line":24,"column":1}},"line":18},"6":{"name":"(anonymous_6)","decl":{"start":{"line":25,"column":56},"end":{"line":25,"column":57}},"loc":{"start":{"line":25,"column":71},"end":{"line":27,"column":1}},"line":25},"7":{"name":"(anonymous_7)","decl":{"start":{"line":41,"column":7},"end":{"line":41,"column":8}},"loc":{"start":{"line":41,"column":15},"end":{"line":46,"column":1}},"line":41},"8":{"name":"(anonymous_8)","decl":{"start":{"line":42,"column":30},"end":{"line":42,"column":31}},"loc":{"start":{"line":42,"column":36},"end":{"line":45,"column":5}},"line":42},"9":{"name":"(anonymous_9)","decl":{"start":{"line":48,"column":6},"end":{"line":48,"column":7}},"loc":{"start":{"line":48,"column":14},"end":{"line":51,"column":1}},"line":48},"10":{"name":"(anonymous_10)","decl":{"start":{"line":53,"column":34},"end":{"line":53,"column":35}},"loc":{"start":{"line":53,"column":40},"end":{"line":74,"column":1}},"line":53},"11":{"name":"(anonymous_11)","decl":{"start":{"line":54,"column":67},"end":{"line":54,"column":68}},"loc":{"start":{"line":54,"column":75},"end":{"line":63,"column":5}},"line":54},"12":{"name":"(anonymous_12)","decl":{"start":{"line":58,"column":17},"end":{"line":58,"column":18}},"loc":{"start":{"line":58,"column":31},"end":{"line":62,"column":9}},"line":58},"13":{"name":"(anonymous_13)","decl":{"start":{"line":64,"column":62},"end":{"line":64,"column":63}},"loc":{"start":{"line":64,"column":70},"end":{"line":73,"column":5}},"line":64},"14":{"name":"(anonymous_14)","decl":{"start":{"line":68,"column":17},"end":{"line":68,"column":18}},"loc":{"start":{"line":68,"column":31},"end":{"line":72,"column":9}},"line":68}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":22},"end":{"line":12,"column":3}},"type":"binary-expr","locations":[{"start":{"line":2,"column":23},"end":{"line":2,"column":27}},{"start":{"line":2,"column":31},"end":{"line":2,"column":51}},{"start":{"line":2,"column":57},"end":{"line":12,"column":2}}],"line":2},"1":{"loc":{"start":{"line":2,"column":57},"end":{"line":12,"column":2}},"type":"cond-expr","locations":[{"start":{"line":2,"column":74},"end":{"line":9,"column":1}},{"start":{"line":9,"column":6},"end":{"line":12,"column":1}}],"line":2},"2":{"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":3,"column":33}},{"start":{"line":3,"column":4},"end":{"line":3,"column":33}}],"line":3},"3":{"loc":{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":7,"column":5}},{"start":{"line":5,"column":4},"end":{"line":7,"column":5}}],"line":5},"4":{"loc":{"start":{"line":5,"column":8},"end":{"line":5,"column":85}},"type":"binary-expr","locations":[{"start":{"line":5,"column":8},"end":{"line":5,"column":13}},{"start":{"line":5,"column":18},"end":{"line":5,"column":84}}],"line":5},"5":{"loc":{"start":{"line":5,"column":18},"end":{"line":5,"column":84}},"type":"cond-expr","locations":[{"start":{"line":5,"column":34},"end":{"line":5,"column":47}},{"start":{"line":5,"column":50},"end":{"line":5,"column":84}}],"line":5},"6":{"loc":{"start":{"line":5,"column":50},"end":{"line":5,"column":84}},"type":"binary-expr","locations":[{"start":{"line":5,"column":50},"end":{"line":5,"column":63}},{"start":{"line":5,"column":67},"end":{"line":5,"column":84}}],"line":5},"7":{"loc":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"type":"if","locations":[{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},{"start":{"line":10,"column":4},"end":{"line":10,"column":33}}],"line":10},"8":{"loc":{"start":{"line":13,"column":25},"end":{"line":17,"column":2}},"type":"binary-expr","locations":[{"start":{"line":13,"column":26},"end":{"line":13,"column":30}},{"start":{"line":13,"column":34},"end":{"line":13,"column":57}},{"start":{"line":13,"column":63},"end":{"line":17,"column":1}}],"line":13},"9":{"loc":{"start":{"line":13,"column":63},"end":{"line":17,"column":1}},"type":"cond-expr","locations":[{"start":{"line":13,"column":80},"end":{"line":15,"column":1}},{"start":{"line":15,"column":5},"end":{"line":17,"column":1}}],"line":13},"10":{"loc":{"start":{"line":18,"column":19},"end":{"line":24,"column":1}},"type":"binary-expr","locations":[{"start":{"line":18,"column":20},"end":{"line":18,"column":24}},{"start":{"line":18,"column":28},"end":{"line":18,"column":45}},{"start":{"line":18,"column":50},"end":{"line":24,"column":1}}],"line":18},"11":{"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":42}},{"start":{"line":19,"column":4},"end":{"line":19,"column":42}}],"line":19},"12":{"loc":{"start":{"line":19,"column":8},"end":{"line":19,"column":29}},"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":11}},{"start":{"line":19,"column":15},"end":{"line":19,"column":29}}],"line":19},"13":{"loc":{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":4},"end":{"line":21,"column":141}},{"start":{"line":21,"column":4},"end":{"line":21,"column":141}}],"line":21},"14":{"loc":{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},"type":"if","locations":[{"start":{"line":21,"column":40},"end":{"line":21,"column":141}},{"start":{"line":21,"column":40},"end":{"line":21,"column":141}}],"line":21},"15":{"loc":{"start":{"line":21,"column":44},"end":{"line":21,"column":107}},"type":"binary-expr","locations":[{"start":{"line":21,"column":44},"end":{"line":21,"column":59}},{"start":{"line":21,"column":63},"end":{"line":21,"column":107}}],"line":21},"16":{"loc":{"start":{"line":25,"column":22},"end":{"line":27,"column":1}},"type":"binary-expr","locations":[{"start":{"line":25,"column":23},"end":{"line":25,"column":27}},{"start":{"line":25,"column":31},"end":{"line":25,"column":51}},{"start":{"line":25,"column":56},"end":{"line":27,"column":1}}],"line":25},"17":{"loc":{"start":{"line":26,"column":11},"end":{"line":26,"column":61}},"type":"cond-expr","locations":[{"start":{"line":26,"column":37},"end":{"line":26,"column":40}},{"start":{"line":26,"column":43},"end":{"line":26,"column":61}}],"line":26},"18":{"loc":{"start":{"line":26,"column":12},"end":{"line":26,"column":33}},"type":"binary-expr","locations":[{"start":{"line":26,"column":12},"end":{"line":26,"column":15}},{"start":{"line":26,"column":19},"end":{"line":26,"column":33}}],"line":26}},"s":{"0":1,"1":11,"2":11,"3":11,"4":11,"5":11,"6":4,"7":11,"8":0,"9":0,"10":0,"11":1,"12":1,"13":0,"14":1,"15":1,"16":0,"17":1,"18":1,"19":1,"20":11,"21":11,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1},"f":{"0":11,"1":4,"2":0,"3":1,"4":0,"5":1,"6":2,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"b":{"0":[1,1,1],"1":[1,0],"2":[11,0],"3":[11,0],"4":[11,11],"5":[0,11],"6":[11,0],"7":[0,0],"8":[1,1,1],"9":[1,0],"10":[1,1,1],"11":[0,1],"12":[1,1],"13":[1,0],"14":[11,0],"15":[11,11],"16":[1,1,1],"17":[0,2],"18":[2,2]},"inputSourceMap":{"version":3,"file":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts","sources":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA0D;AAC1D,0DAAiC;AACjC,oDAA4B;AAC5B,6CAAoC;AAEpC,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,cAAc;AACd,cAAI,CAAC,GAAG,CAAC,mBAAQ,CAAC,CAAC;AACnB,cAAI,CAAC,MAAM,EAAE,CAAC;AAEd,qBAAqB;AACrB,MAAM,GAAG,GAAG,IAAA,+BAAe,GAAE,CAAC;AAC9B,IAAI,MAAc,CAAC;AAEnB,oBAAoB;AACpB,MAAM,CAAC,IAAI,CAAC,EAAE;IACZ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;QAClD,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,oBAAoB;AACpB,KAAK,CAAC,IAAI,CAAC,EAAE;IACX,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,IAAI,EAAE,CAAC;AACT,CAAC,CAAC,CAAC;AAEH,6BAA6B;AAC7B,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,EAAE,CAAC,0DAA0D,EAAE,IAAI,CAAC,EAAE;QACpE,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,iBAAiB,CAAC;aACtB,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CACvB,0FAA0F,CAC3F,CAAC;YACF,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,IAAI,CAAC,EAAE;QAC/D,cAAI;aACD,OAAO,CAAC,GAAG,CAAC;aACZ,GAAG,CAAC,QAAQ,CAAC;aACb,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAChB,IAAA,aAAM,EAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;YAC9C,IAAI,EAAE,CAAC;QACT,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { configureServer } from '../config/server.config';\nimport chaiHttp from 'chai-http';\nimport dotenv from 'dotenv';\nimport chai, { expect } from 'chai';\nimport type { Server } from 'http';\ndotenv.config();\n\n// set up chai\nchai.use(chaiHttp);\nchai.should();\n\n// set up mock server\nconst app = configureServer();\nlet server: Server;\n\n// start mock server\nbefore(done => {\n server = app.listen(2302, () => {\n console.log('Mock server listening on port 2302');\n done();\n });\n});\n\n// close mock server\nafter(done => {\n server.close();\n done();\n});\n\n// test queryParameterExample\ndescribe('queryParameterExample', () => {\n it('should return 418 and a message with the query parameter', done => {\n chai\n .request(app)\n .get('/query?name=Bob')\n .end((err, res) => {\n expect(res).to.have.status(418);\n expect(res.text).to.equal(\n 'I cant make coffee! Thanks for your request though, Bob. Great use of a query parameter!'\n );\n done();\n });\n });\n\n it('should return 400 if no query parameter is provided', done => {\n chai\n .request(app)\n .get('/query')\n .end((err, res) => {\n expect(res).to.have.status(400);\n expect(res.text).to.equal('Name is required');\n done();\n });\n });\n});\n"]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"34c6bdbae3be0e1eb5dfeb26ddb6e871caa6ee1d","contentHash":"d91650f53898d96553e833ecddfff9dba4d9facf834bc4f4cf2ecb7bde192e32"}} \ No newline at end of file diff --git a/.nyc_output/processinfo/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json b/.nyc_output/processinfo/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json new file mode 100644 index 0000000..ce0ba27 --- /dev/null +++ b/.nyc_output/processinfo/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json @@ -0,0 +1 @@ +{"parent":null,"pid":85340,"argv":["/usr/local/bin/node","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/Trimming.tests.ts","src/tests/bodyParameterExample.tests.ts","src/tests/pathParameterExample.tests.ts","src/tests/queryParameterExample.tests.ts"],"execArgv":[],"cwd":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend","time":1705537238212,"ppid":85339,"coverageFilename":"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/.nyc_output/8c2cf865-2242-4fbd-8ac9-924bd3ddd913.json","externalId":"","uuid":"8c2cf865-2242-4fbd-8ac9-924bd3ddd913","files":["/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/b8545892-70f7-4afa-9fc8-a6f96acb4fc8.json b/.nyc_output/processinfo/b8545892-70f7-4afa-9fc8-a6f96acb4fc8.json deleted file mode 100644 index fc4d3ee..0000000 --- a/.nyc_output/processinfo/b8545892-70f7-4afa-9fc8-a6f96acb4fc8.json +++ /dev/null @@ -1 +0,0 @@ -{"parent":null,"pid":21290,"argv":["/usr/local/bin/node","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/node_modules/.bin/mocha","-r","dotenv/config","--timeout","20000","--exit","-r","ts-node/register","src/tests/bodyParameterExample.tests.ts","src/tests/pathParameterExample.tests.ts","src/tests/queryParameterExample.tests.ts"],"execArgv":[],"cwd":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend","time":1705258451769,"ppid":21289,"coverageFilename":"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/.nyc_output/b8545892-70f7-4afa-9fc8-a6f96acb4fc8.json","externalId":"","uuid":"b8545892-70f7-4afa-9fc8-a6f96acb4fc8","files":["/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts","/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts"]} \ No newline at end of file diff --git a/.nyc_output/processinfo/index.json b/.nyc_output/processinfo/index.json index 88dd45a..8ad60ae 100644 --- a/.nyc_output/processinfo/index.json +++ b/.nyc_output/processinfo/index.json @@ -1 +1 @@ -{"processes":{"b8545892-70f7-4afa-9fc8-a6f96acb4fc8":{"parent":null,"children":[]}},"files":{"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"],"/Users/jacoblurie/Git/College/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":["b8545892-70f7-4afa-9fc8-a6f96acb4fc8"]},"externalIds":{}} \ No newline at end of file +{"processes":{"8c2cf865-2242-4fbd-8ac9-924bd3ddd913":{"parent":null,"children":[]}},"files":{"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/Trimming.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-requests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/flight-legs.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/util/trimming/passengers.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/test-data.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/data/constants.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/bodyParameterExample.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/config/server.config.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/routes/Test.routes.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/queryParameterExample.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/retrievePassengers.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/pathParameterExample.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/controllers/TestControllers/bodyParameterExample.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/pathParameterExample.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"],"/Users/jacobdavey/ChangePlusPlus/miracleflightsbackend/src/tests/queryParameterExample.tests.ts":["8c2cf865-2242-4fbd-8ac9-924bd3ddd913"]},"externalIds":{}} \ No newline at end of file diff --git a/build/interfaces/legs/flight-leg.interface.js b/build/interfaces/legs/flight-leg.interface.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/build/interfaces/legs/flight-leg.interface.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/build/interfaces/legs/trimmed-flight-leg.interface.js b/build/interfaces/legs/trimmed-flight-leg.interface.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/build/interfaces/legs/trimmed-flight-leg.interface.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/build/interfaces/passenger/passenger.interface.js b/build/interfaces/passenger/passenger.interface.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/build/interfaces/passenger/passenger.interface.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/build/interfaces/passenger/trimmed-passenger.interface.js b/build/interfaces/passenger/trimmed-passenger.interface.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/build/interfaces/passenger/trimmed-passenger.interface.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/build/interfaces/requests/flight-request.interface.js b/build/interfaces/requests/flight-request.interface.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/build/interfaces/requests/flight-request.interface.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/build/interfaces/requests/trimmed-flight-request.interface.js b/build/interfaces/requests/trimmed-flight-request.interface.js new file mode 100644 index 0000000..c8ad2e5 --- /dev/null +++ b/build/interfaces/requests/trimmed-flight-request.interface.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/build/tests/Trimming.tests.js b/build/tests/Trimming.tests.js new file mode 100644 index 0000000..f4f69eb --- /dev/null +++ b/build/tests/Trimming.tests.js @@ -0,0 +1,143 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const flight_requests_1 = require("../util/trimming/flight-requests"); +const flight_legs_1 = require("../util/trimming/flight-legs"); +const passengers_1 = require("../util/trimming/passengers"); +const test_data_1 = require("../data/test-data"); +const chai_1 = __importStar(require("chai")); +chai_1.default.should(); +describe('Trimming', () => { + it('should properly trim request', () => { + const requestData = (0, test_data_1.createTestFlightRequestData)(); + const trimmedRequest = (0, flight_requests_1.trimRequest)(requestData); + (0, chai_1.expect)(requestData.id).to.equal(trimmedRequest.id); + (0, chai_1.expect)(requestData.createdTime).to.equal(trimmedRequest.createdTime); + (0, chai_1.expect)(requestData.fields['Submission ID']).to.equal(trimmedRequest['Submission ID']); + (0, chai_1.expect)(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']); + (0, chai_1.expect)(requestData.fields['Departure Date']).to.equal(trimmedRequest['Departure Date']); + (0, chai_1.expect)(requestData.fields['Request Type']).to.equal(trimmedRequest['Request Type']); + (0, chai_1.expect)(requestData.fields['Household Size']).to.equal(trimmedRequest['Household Size']); + (0, chai_1.expect)(requestData.fields['Passenger 2 Approval Status']).to.equal(trimmedRequest['Passenger 2 Approval Status']); + (0, chai_1.expect)(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']); + (0, chai_1.expect)(requestData.fields['Passenger 3']).to.equal(trimmedRequest['Passenger 3']); + (0, chai_1.expect)(requestData.fields['Patient Type']).to.equal(trimmedRequest['Patient Type']); + (0, chai_1.expect)(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity); + (0, chai_1.expect)(requestData.fields['Treatment City']).to.equal(trimmedRequest['Treatment City']); + (0, chai_1.expect)(requestData.fields.Education).to.equal(trimmedRequest.Education); + (0, chai_1.expect)(requestData.fields['Treatment Phone']).to.equal(trimmedRequest['Treatment Phone']); + (0, chai_1.expect)(requestData.fields['Submission Date']).to.equal(trimmedRequest['Submission Date']); + (0, chai_1.expect)(requestData.fields['Alt Destination Airport']).to.equal(trimmedRequest['Alt Destination Airport']); + (0, chai_1.expect)(requestData.fields['Primary Treatment Doctor']).to.equal(trimmedRequest['Primary Treatment Doctor']); + (0, chai_1.expect)(requestData.fields['Wheelchair?']).to.equal(trimmedRequest['Wheelchair?']); + (0, chai_1.expect)(requestData.fields['Flight Specialist']).to.equal(trimmedRequest['Flight Specialist']); + (0, chai_1.expect)(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']); + (0, chai_1.expect)(requestData.fields['Passenger 3 Approval Status']).to.equal(trimmedRequest['Passenger 3 Approval Status']); + (0, chai_1.expect)(requestData.fields['First Request']).to.equal(trimmedRequest['First Request']); + (0, chai_1.expect)(requestData.fields['Type of Treatment']).to.equal(trimmedRequest['Type of Treatment']); + (0, chai_1.expect)(requestData.fields['Passenger 3 Reason']).to.equal(trimmedRequest['Passenger 3 Reason']); + (0, chai_1.expect)(requestData.fields['Flight Legs']).to.equal(trimmedRequest['Flight Legs']); + (0, chai_1.expect)(requestData.fields.Status).to.equal(trimmedRequest.Status); + (0, chai_1.expect)(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']); + (0, chai_1.expect)(requestData.fields['Origin Airport']).to.equal(trimmedRequest['Origin Airport']); + (0, chai_1.expect)(requestData.fields['Treatment Fax']).to.equal(trimmedRequest['Treatment Fax']); + (0, chai_1.expect)(requestData.fields['Passenger 3 Different Return']).to.equal(trimmedRequest['Passenger 3 Different Return']); + (0, chai_1.expect)(requestData.fields.Patient).to.equal(trimmedRequest.Patient); + (0, chai_1.expect)(requestData.fields['Passenger 2']).to.equal(trimmedRequest['Passenger 2']); + (0, chai_1.expect)(requestData.fields['Return Date']).to.equal(trimmedRequest['Return Date']); + (0, chai_1.expect)(requestData.fields['Treatment Site']).to.equal(trimmedRequest['Treatment Site']); + (0, chai_1.expect)(requestData.fields['Treatment State']).to.equal(trimmedRequest['Treatment State']); + (0, chai_1.expect)(requestData.fields['Passenger 3 Return Date']).to.equal(trimmedRequest['Passenger 3 Return Date']); + (0, chai_1.expect)(requestData.fields['Patient Age']).to.equal(trimmedRequest['Patient Age']); + (0, chai_1.expect)(requestData.fields['Passenger 2 Different Return']).to.equal(trimmedRequest['Passenger 2 Different Return']); + (0, chai_1.expect)(requestData.fields['Destination Airport']).to.equal(trimmedRequest['Destination Airport']); + (0, chai_1.expect)(requestData.fields['Alt. Origin Airport']).to.equal(trimmedRequest['Alt. Origin Airport']); + (0, chai_1.expect)(requestData.fields['AirTable Record ID']).to.equal(trimmedRequest['AirTable Record ID']); + (0, chai_1.expect)(requestData.fields['Patient AirTable Record ID']).to.equal(trimmedRequest['Patient AirTable Record ID']); + (0, chai_1.expect)(requestData.fields['Passenger 2 AirTable Record ID']).to.equal(trimmedRequest['Passenger 2 AirTable Record ID']); + (0, chai_1.expect)(requestData.fields['Passenger 3 AirTable Record ID']).to.equal(trimmedRequest['Passenger 3 AirTable Record ID']); + (0, chai_1.expect)(requestData.fields['Passenger AirTable Record IDs']).to.equal(trimmedRequest['Passenger AirTable Record IDs']); + (0, chai_1.expect)(requestData.fields['Existing Diagnoses']).to.equal(trimmedRequest['Existing Diagnoses']); + (0, chai_1.expect)(requestData.fields['Total Nautical Miles']).to.equal(trimmedRequest['Total Nautical Miles']); + (0, chai_1.expect)(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']); + (0, chai_1.expect)(requestData.fields['Total # of Legs']).to.equal(trimmedRequest['Total # of Legs']); + (0, chai_1.expect)(requestData.fields['Request ID']).to.equal(trimmedRequest['Request ID']); + }); + it('should properly trim flight leg', () => { + const legData = (0, test_data_1.createTestFlightLegData)(); + const trimmedLeg = (0, flight_legs_1.trimFlightLeg)(legData); + (0, chai_1.expect)(legData.id).to.equal(trimmedLeg.id); + (0, chai_1.expect)(legData.createdTime).to.equal(trimmedLeg.createdTime); + (0, chai_1.expect)(legData.fields.Status).to.equal(trimmedLeg.Status); + (0, chai_1.expect)(legData.fields.Airline).to.equal(trimmedLeg.Airline); + (0, chai_1.expect)(legData.fields['Departure Date/Time']).to.equal(trimmedLeg['Departure Date/Time']); + (0, chai_1.expect)(legData.fields['Arrival Date/Time']).to.equal(trimmedLeg['Arrival Date/Time']); + (0, chai_1.expect)(legData.fields['Nautical Miles']).to.equal(trimmedLeg['Nautical Miles']); + (0, chai_1.expect)(legData.fields.Passengers).to.equal(trimmedLeg.Passengers); + (0, chai_1.expect)(legData.fields['Departure Airport']).to.equal(trimmedLeg['Departure Airport']); + (0, chai_1.expect)(legData.fields['Arrival Airport']).to.equal(trimmedLeg['Arrival Airport']); + (0, chai_1.expect)(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']); + (0, chai_1.expect)(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']); + (0, chai_1.expect)(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']); + (0, chai_1.expect)(legData.fields['Passenger Names']).to.equal(trimmedLeg['Passenger Names']); + (0, chai_1.expect)(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']); + (0, chai_1.expect)(legData.fields['AirTable Record ID']).to.equal(trimmedLeg['AirTable Record ID']); + (0, chai_1.expect)(legData.fields['Request AirTable Record ID']).to.equal(trimmedLeg['Request AirTable Record ID']); + (0, chai_1.expect)(legData.fields['Passenger AirTable Record IDs']).to.equal(trimmedLeg['Passenger AirTable Record IDs']); + (0, chai_1.expect)(legData.fields['Log Airline Credit']).to.equal(trimmedLeg['Log Airline Credit']); + (0, chai_1.expect)(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']); + (0, chai_1.expect)(legData.fields['Patient Latest Trip']).to.equal(trimmedLeg['Patient Latest Trip']); + (0, chai_1.expect)(legData.fields['Is Latest Trip']).to.equal(trimmedLeg['Is Latest Trip']); + }); + it('should properly trim passenger', () => { + const passengerData = (0, test_data_1.createTestPassengerData)(); + const trimmedPassenger = (0, passengers_1.trimPassenger)(passengerData); + (0, chai_1.expect)(passengerData.id).to.equal(trimmedPassenger.id); + (0, chai_1.expect)(passengerData.createdTime).to.equal(trimmedPassenger.createdTime); + (0, chai_1.expect)(passengerData.fields.Type).to.equal(trimmedPassenger.Type); + (0, chai_1.expect)(passengerData.fields['First Name']).to.equal(trimmedPassenger['First Name']); + (0, chai_1.expect)(passengerData.fields['Last Name']).to.equal(trimmedPassenger['Last Name']); + (0, chai_1.expect)(passengerData.fields['Date of Birth']).to.equal(trimmedPassenger['Date of Birth']); + (0, chai_1.expect)(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender); + (0, chai_1.expect)(passengerData.fields.Street).to.equal(trimmedPassenger.Street); + (0, chai_1.expect)(passengerData.fields.Country).to.equal(trimmedPassenger.Country); + (0, chai_1.expect)(passengerData.fields.Email).to.equal(trimmedPassenger.Email); + (0, chai_1.expect)(passengerData.fields['Household Income']).to.equal(trimmedPassenger['Household Income']); + (0, chai_1.expect)(passengerData.fields['Household Size']).to.equal(trimmedPassenger['Household Size']); + (0, chai_1.expect)(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity); + (0, chai_1.expect)(passengerData.fields['Military Service']).to.equal(trimmedPassenger['Military Service']); + (0, chai_1.expect)(passengerData.fields['Military Member']).to.equal(trimmedPassenger['Military Member']); + (0, chai_1.expect)(passengerData.fields['How did you hear about us']).to.equal(trimmedPassenger['How did you hear about us']); + (0, chai_1.expect)(passengerData.fields['All Flight Legs']).to.equal(trimmedPassenger['All Flight Legs']); + (0, chai_1.expect)(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis); + (0, chai_1.expect)(passengerData.fields['AirTable Record ID']).to.equal(trimmedPassenger['AirTable Record ID']); + (0, chai_1.expect)(passengerData.fields['# of Flight Legs']).to.equal(trimmedPassenger['# of Flight Legs']); + (0, chai_1.expect)(passengerData.fields['# of Booked Flight Requests']).to.equal(trimmedPassenger['# of Booked Flight Requests']); + (0, chai_1.expect)(passengerData.fields['Birth Month']).to.equal(trimmedPassenger['Birth Month']); + (0, chai_1.expect)(passengerData.fields['Full Name']).to.equal(trimmedPassenger['Full Name']); + (0, chai_1.expect)(passengerData.fields.Age).to.equal(trimmedPassenger.Age); + (0, chai_1.expect)(passengerData.fields['Latest Trip']).to.equal(trimmedPassenger['Latest Trip']); + }); +}); diff --git a/build/util/trimming/__tests__/Trimming.test.js b/build/util/trimming/__tests__/Trimming.test.js new file mode 100644 index 0000000..3918c74 --- /dev/null +++ b/build/util/trimming/__tests__/Trimming.test.js @@ -0,0 +1 @@ +"use strict"; diff --git a/build/util/trimming/flight-legs.js b/build/util/trimming/flight-legs.js new file mode 100644 index 0000000..72f6650 --- /dev/null +++ b/build/util/trimming/flight-legs.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.trimFlightLeg = void 0; +const trimFlightLeg = (request) => { + const { id, createdTime, fields } = request; + const { Status, Airline, Passengers } = fields; + const trimmedLeg = { + id: id, + createdTime: createdTime, + Status: Status, + Airline: Airline, + 'Departure Date/Time': fields['Departure Date/Time'], + 'Arrival Date/Time': fields['Arrival Date/Time'], + 'Nautical Miles': fields['Nautical Miles'], + Passengers: Passengers, + 'Departure Airport': fields['Departure Airport'], + 'Arrival Airport': fields['Arrival Airport'], + 'Leg ID': fields['Leg ID'], + 'Leg Type': fields['Leg Type'], + 'Total Miles': fields['Total Miles'], + 'Passenger Names': fields['Passenger Names'], + 'Total Cost': fields['Total Cost'], + 'AirTable Record ID': fields['AirTable Record ID'], + 'Request AirTable Record ID': fields['Request AirTable Record ID'], + 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'], + 'Log Airline Credit': { + label: fields['Log Airline Credit'].label, + url: fields['Log Airline Credit'].url, + }, + 'Patient Name': fields['Patient Name'], + 'Patient Latest Trip': fields['Patient Latest Trip'], + 'Is Latest Trip': fields['Is Latest Trip'], + }; + return trimmedLeg; +}; +exports.trimFlightLeg = trimFlightLeg; diff --git a/build/util/trimming/flight-requests.js b/build/util/trimming/flight-requests.js new file mode 100644 index 0000000..dd89e06 --- /dev/null +++ b/build/util/trimming/flight-requests.js @@ -0,0 +1,62 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.trimRequest = void 0; +const trimRequest = (request) => { + const { id, createdTime, fields } = request; + const { Diagnosis, Ethnicity, Education, Status, Patient } = fields; + const trimmedRequest = { + id: id, + createdTime: createdTime, + 'Submission ID': fields['Submission ID'], + 'Trip Type': fields['Trip Type'], + 'Departure Date': fields['Departure Date'], + 'Request Type': fields['Request Type'], + 'Household Size': fields['Household Size'], + 'Passenger 2 Approval Status': fields['Passenger 2 Approval Status'], + Diagnosis: Diagnosis, + 'Passenger 3': fields['Passenger 3'], + 'Patient Type': fields['Patient Type'], + Ethnicity: Ethnicity, + 'Treatment City': fields['Treatment City'], + Education: Education, + 'Treatment Phone': fields['Treatment Phone'], + 'Submission Date': fields['Submission Date'], + 'Alt Destination Airport': fields['Alt Destination Airport'], + 'Primary Treatment Doctor': fields['Primary Treatment Doctor'], + 'Wheelchair?': fields['Wheelchair?'], + 'Flight Specialist': fields['Flight Specialist'], + 'Appt Date': fields['Appt Date'], + 'Passenger 3 Approval Status': fields['Passenger 3 Approval Status'], + 'First Request': fields['First Request'], + 'Type of Treatment': fields['Type of Treatment'], + 'Passenger 3 Reason': fields['Passenger 3 Reason'], + 'Flight Legs': fields['Flight Legs'], + Status: Status, + 'Oxygen?': fields['Oxygen?'], + 'Origin Airport': fields['Origin Airport'], + 'Treatment Fax': fields['Treatment Fax'], + 'Passenger 3 Different Return': fields['Passenger 3 Different Return'], + Patient: Patient, + 'Passenger 2': fields['Passenger 2'], + 'Return Date': fields['Return Date'], + 'Treatment Site': fields['Treatment Site'], + 'Treatment State': fields['Treatment State'], + 'Passenger 3 Return Date': fields['Passenger 3 Return Date'], + 'Patient Age': fields['Patient Age'], + 'Passenger 2 Different Return': fields['Passenger 2 Different Return'], + 'Destination Airport': fields['Destination Airport'], + 'Alt. Origin Airport': fields['Alt. Origin Airport'], + 'AirTable Record ID': fields['AirTable Record ID'], + 'Patient AirTable Record ID': fields['Patient AirTable Record ID'], + 'Passenger 2 AirTable Record ID': fields['Passenger 2 AirTable Record ID'], + 'Passenger 3 AirTable Record ID': fields['Passenger 3 AirTable Record ID'], + 'Passenger AirTable Record IDs': fields['Passenger AirTable Record IDs'], + 'Existing Diagnoses': fields['Existing Diagnoses'], + 'Total Nautical Miles': fields['Total Nautical Miles'], + '# of Legs': fields['# of Legs'], + 'Total # of Legs': fields['Total # of Legs'], + 'Request ID': fields['Request ID'], + }; + return trimmedRequest; +}; +exports.trimRequest = trimRequest; diff --git a/build/util/trimming/passengers.js b/build/util/trimming/passengers.js new file mode 100644 index 0000000..f38626c --- /dev/null +++ b/build/util/trimming/passengers.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.trimPassenger = void 0; +const trimPassenger = (passenger) => { + const { id, createdTime, fields } = passenger; + const { Type, Gender, Street, Country, Email, Ethnicity, Diagnosis, Age } = fields; + const trimmedPassenger = { + id: id, + createdTime: createdTime, + Type: Type, + 'First Name': fields['First Name'], + 'Last Name': fields['Last Name'], + 'Date of Birth': fields['Date of Birth'], + Gender: Gender, + Street: Street, + Country: Country, + Email: Email, + 'Household Income': fields['Household Income'], + 'Household Size': fields['Household Size'], + Ethnicity: Ethnicity, + 'Military Service': fields['Military Service'], + 'Military Member': fields['Military Member'], + 'How did you hear about us': fields['How did you hear about us'], + 'All Flight Legs': fields['All Flight Legs'], + Diagnosis: Diagnosis, + 'AirTable Record ID': fields['AirTable Record ID'], + '# of Flight Legs': fields['# of Flight Legs'], + '# of Booked Flight Requests': fields['# of Booked Flight Requests'], + 'Birth Month': fields['Birth Month'], + 'Full Name': fields['Full Name'], + Age: Age, + 'Latest Trip': fields['Latest Trip'], + }; + return trimmedPassenger; +}; +exports.trimPassenger = trimPassenger; diff --git a/src/tests/Trimming.tests.ts b/src/tests/Trimming.tests.ts new file mode 100644 index 0000000..53dc137 --- /dev/null +++ b/src/tests/Trimming.tests.ts @@ -0,0 +1,268 @@ +import { trimRequest } from '../util/trimming/flight-requests'; +import { trimFlightLeg } from '../util/trimming/flight-legs'; +import { trimPassenger } from '../util/trimming/passengers'; +import { + createTestFlightLegData, + createTestFlightRequestData, + createTestPassengerData, +} from '../data/test-data'; +import chai, { expect } from 'chai'; +import type { FlightLegData } from '../interfaces/legs/flight-leg.interface'; +import type { FlightRequestData } from '../interfaces/requests/flight-request.interface'; +import type { PassengerData } from '../interfaces/passenger/passenger.interface'; +import type { TrimmedFlightLeg } from '../interfaces/legs/trimmed-flight-leg.interface'; +import type { TrimmedFlightRequest } from '../interfaces/requests/trimmed-flight-request.interface'; +import type { TrimmedPassenger } from '../interfaces/passenger/trimmed-passenger.interface'; +chai.should(); + +describe('Trimming', () => { + it('should properly trim request', () => { + const requestData: FlightRequestData = createTestFlightRequestData(); + const trimmedRequest: TrimmedFlightRequest = trimRequest(requestData); + expect(requestData.id).to.equal(trimmedRequest.id); + expect(requestData.createdTime).to.equal(trimmedRequest.createdTime); + expect(requestData.fields['Submission ID']).to.equal( + trimmedRequest['Submission ID'] + ); + expect(requestData.fields['Trip Type']).to.equal(trimmedRequest['Trip Type']); + expect(requestData.fields['Departure Date']).to.equal( + trimmedRequest['Departure Date'] + ); + expect(requestData.fields['Request Type']).to.equal( + trimmedRequest['Request Type'] + ); + expect(requestData.fields['Household Size']).to.equal( + trimmedRequest['Household Size'] + ); + expect(requestData.fields['Passenger 2 Approval Status']).to.equal( + trimmedRequest['Passenger 2 Approval Status'] + ); + expect(requestData.fields['Diagnosis']).to.equal(trimmedRequest['Diagnosis']); + expect(requestData.fields['Passenger 3']).to.equal( + trimmedRequest['Passenger 3'] + ); + expect(requestData.fields['Patient Type']).to.equal( + trimmedRequest['Patient Type'] + ); + expect(requestData.fields.Ethnicity).to.equal(trimmedRequest.Ethnicity); + expect(requestData.fields['Treatment City']).to.equal( + trimmedRequest['Treatment City'] + ); + expect(requestData.fields.Education).to.equal(trimmedRequest.Education); + expect(requestData.fields['Treatment Phone']).to.equal( + trimmedRequest['Treatment Phone'] + ); + expect(requestData.fields['Submission Date']).to.equal( + trimmedRequest['Submission Date'] + ); + expect(requestData.fields['Alt Destination Airport']).to.equal( + trimmedRequest['Alt Destination Airport'] + ); + expect(requestData.fields['Primary Treatment Doctor']).to.equal( + trimmedRequest['Primary Treatment Doctor'] + ); + expect(requestData.fields['Wheelchair?']).to.equal( + trimmedRequest['Wheelchair?'] + ); + expect(requestData.fields['Flight Specialist']).to.equal( + trimmedRequest['Flight Specialist'] + ); + expect(requestData.fields['Appt Date']).to.equal(trimmedRequest['Appt Date']); + expect(requestData.fields['Passenger 3 Approval Status']).to.equal( + trimmedRequest['Passenger 3 Approval Status'] + ); + expect(requestData.fields['First Request']).to.equal( + trimmedRequest['First Request'] + ); + expect(requestData.fields['Type of Treatment']).to.equal( + trimmedRequest['Type of Treatment'] + ); + expect(requestData.fields['Passenger 3 Reason']).to.equal( + trimmedRequest['Passenger 3 Reason'] + ); + expect(requestData.fields['Flight Legs']).to.equal( + trimmedRequest['Flight Legs'] + ); + expect(requestData.fields.Status).to.equal(trimmedRequest.Status); + expect(requestData.fields['Oxygen?']).to.equal(trimmedRequest['Oxygen?']); + expect(requestData.fields['Origin Airport']).to.equal( + trimmedRequest['Origin Airport'] + ); + expect(requestData.fields['Treatment Fax']).to.equal( + trimmedRequest['Treatment Fax'] + ); + expect(requestData.fields['Passenger 3 Different Return']).to.equal( + trimmedRequest['Passenger 3 Different Return'] + ); + expect(requestData.fields.Patient).to.equal(trimmedRequest.Patient); + expect(requestData.fields['Passenger 2']).to.equal( + trimmedRequest['Passenger 2'] + ); + expect(requestData.fields['Return Date']).to.equal( + trimmedRequest['Return Date'] + ); + expect(requestData.fields['Treatment Site']).to.equal( + trimmedRequest['Treatment Site'] + ); + expect(requestData.fields['Treatment State']).to.equal( + trimmedRequest['Treatment State'] + ); + expect(requestData.fields['Passenger 3 Return Date']).to.equal( + trimmedRequest['Passenger 3 Return Date'] + ); + expect(requestData.fields['Patient Age']).to.equal( + trimmedRequest['Patient Age'] + ); + expect(requestData.fields['Passenger 2 Different Return']).to.equal( + trimmedRequest['Passenger 2 Different Return'] + ); + expect(requestData.fields['Destination Airport']).to.equal( + trimmedRequest['Destination Airport'] + ); + expect(requestData.fields['Alt. Origin Airport']).to.equal( + trimmedRequest['Alt. Origin Airport'] + ); + expect(requestData.fields['AirTable Record ID']).to.equal( + trimmedRequest['AirTable Record ID'] + ); + expect(requestData.fields['Patient AirTable Record ID']).to.equal( + trimmedRequest['Patient AirTable Record ID'] + ); + expect(requestData.fields['Passenger 2 AirTable Record ID']).to.equal( + trimmedRequest['Passenger 2 AirTable Record ID'] + ); + expect(requestData.fields['Passenger 3 AirTable Record ID']).to.equal( + trimmedRequest['Passenger 3 AirTable Record ID'] + ); + expect(requestData.fields['Passenger AirTable Record IDs']).to.equal( + trimmedRequest['Passenger AirTable Record IDs'] + ); + expect(requestData.fields['Existing Diagnoses']).to.equal( + trimmedRequest['Existing Diagnoses'] + ); + expect(requestData.fields['Total Nautical Miles']).to.equal( + trimmedRequest['Total Nautical Miles'] + ); + expect(requestData.fields['# of Legs']).to.equal(trimmedRequest['# of Legs']); + expect(requestData.fields['Total # of Legs']).to.equal( + trimmedRequest['Total # of Legs'] + ); + expect(requestData.fields['Request ID']).to.equal( + trimmedRequest['Request ID'] + ); + }); + + it('should properly trim flight leg', () => { + const legData: FlightLegData = createTestFlightLegData(); + const trimmedLeg: TrimmedFlightLeg = trimFlightLeg(legData); + expect(legData.id).to.equal(trimmedLeg.id); + expect(legData.createdTime).to.equal(trimmedLeg.createdTime); + expect(legData.fields.Status).to.equal(trimmedLeg.Status); + expect(legData.fields.Airline).to.equal(trimmedLeg.Airline); + expect(legData.fields['Departure Date/Time']).to.equal( + trimmedLeg['Departure Date/Time'] + ); + expect(legData.fields['Arrival Date/Time']).to.equal( + trimmedLeg['Arrival Date/Time'] + ); + expect(legData.fields['Nautical Miles']).to.equal( + trimmedLeg['Nautical Miles'] + ); + expect(legData.fields.Passengers).to.equal(trimmedLeg.Passengers); + expect(legData.fields['Departure Airport']).to.equal( + trimmedLeg['Departure Airport'] + ); + expect(legData.fields['Arrival Airport']).to.equal( + trimmedLeg['Arrival Airport'] + ); + expect(legData.fields['Leg ID']).to.equal(trimmedLeg['Leg ID']); + expect(legData.fields['Leg Type']).to.equal(trimmedLeg['Leg Type']); + expect(legData.fields['Total Miles']).to.equal(trimmedLeg['Total Miles']); + expect(legData.fields['Passenger Names']).to.equal( + trimmedLeg['Passenger Names'] + ); + expect(legData.fields['Total Cost']).to.equal(trimmedLeg['Total Cost']); + expect(legData.fields['AirTable Record ID']).to.equal( + trimmedLeg['AirTable Record ID'] + ); + expect(legData.fields['Request AirTable Record ID']).to.equal( + trimmedLeg['Request AirTable Record ID'] + ); + expect(legData.fields['Passenger AirTable Record IDs']).to.equal( + trimmedLeg['Passenger AirTable Record IDs'] + ); + expect(legData.fields['Log Airline Credit'].label).to.equal( + trimmedLeg['Log Airline Credit'].label + ); + expect(legData.fields['Log Airline Credit'].url).to.equal( + trimmedLeg['Log Airline Credit'].url + ); + expect(legData.fields['Patient Name']).to.equal(trimmedLeg['Patient Name']); + expect(legData.fields['Patient Latest Trip']).to.equal( + trimmedLeg['Patient Latest Trip'] + ); + expect(legData.fields['Is Latest Trip']).to.equal( + trimmedLeg['Is Latest Trip'] + ); + }); + + it('should properly trim passenger', () => { + const passengerData: PassengerData = createTestPassengerData(); + const trimmedPassenger: TrimmedPassenger = trimPassenger(passengerData); + expect(passengerData.id).to.equal(trimmedPassenger.id); + expect(passengerData.createdTime).to.equal(trimmedPassenger.createdTime); + expect(passengerData.fields.Type).to.equal(trimmedPassenger.Type); + expect(passengerData.fields['First Name']).to.equal( + trimmedPassenger['First Name'] + ); + expect(passengerData.fields['Last Name']).to.equal( + trimmedPassenger['Last Name'] + ); + expect(passengerData.fields['Date of Birth']).to.equal( + trimmedPassenger['Date of Birth'] + ); + expect(passengerData.fields.Gender).to.equal(trimmedPassenger.Gender); + expect(passengerData.fields.Street).to.equal(trimmedPassenger.Street); + expect(passengerData.fields.Country).to.equal(trimmedPassenger.Country); + expect(passengerData.fields.Email).to.equal(trimmedPassenger.Email); + expect(passengerData.fields['Household Income']).to.equal( + trimmedPassenger['Household Income'] + ); + expect(passengerData.fields['Household Size']).to.equal( + trimmedPassenger['Household Size'] + ); + expect(passengerData.fields.Ethnicity).to.equal(trimmedPassenger.Ethnicity); + expect(passengerData.fields['Military Service']).to.equal( + trimmedPassenger['Military Service'] + ); + expect(passengerData.fields['Military Member']).to.equal( + trimmedPassenger['Military Member'] + ); + expect(passengerData.fields['How did you hear about us']).to.equal( + trimmedPassenger['How did you hear about us'] + ); + expect(passengerData.fields['All Flight Legs']).to.equal( + trimmedPassenger['All Flight Legs'] + ); + expect(passengerData.fields.Diagnosis).to.equal(trimmedPassenger.Diagnosis); + expect(passengerData.fields['AirTable Record ID']).to.equal( + trimmedPassenger['AirTable Record ID'] + ); + expect(passengerData.fields['# of Flight Legs']).to.equal( + trimmedPassenger['# of Flight Legs'] + ); + expect(passengerData.fields['# of Booked Flight Requests']).to.equal( + trimmedPassenger['# of Booked Flight Requests'] + ); + expect(passengerData.fields['Birth Month']).to.equal( + trimmedPassenger['Birth Month'] + ); + expect(passengerData.fields['Full Name']).to.equal( + trimmedPassenger['Full Name'] + ); + expect(passengerData.fields.Age).to.equal(trimmedPassenger.Age); + expect(passengerData.fields['Latest Trip']).to.equal( + trimmedPassenger['Latest Trip'] + ); + }); +}); diff --git a/src/util/trimming/__tests__/Trimming.test.ts b/src/util/trimming/__tests__/Trimming.test.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/util/trimming/flight-legs.ts b/src/util/trimming/flight-legs.ts index 98b5262..6e37976 100644 --- a/src/util/trimming/flight-legs.ts +++ b/src/util/trimming/flight-legs.ts @@ -1,7 +1,7 @@ import type { FlightLegData } from '../../interfaces/legs/flight-leg.interface'; import type { TrimmedFlightLeg } from '../../interfaces/legs/trimmed-flight-leg.interface'; -export const trimRequest = (request: FlightLegData): TrimmedFlightLeg => { +export const trimFlightLeg = (request: FlightLegData): TrimmedFlightLeg => { const { id, createdTime, fields } = request; const { Status, Airline, Passengers } = fields;