Bones/node_modules/promise-finally/dist/promise-finally.spec.js.map
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

1 line
1.7 KiB
Plaintext

{"version":3,"file":"promise-finally.spec.js","sourceRoot":"","sources":["../src/promise-finally.spec.ts"],"names":[],"mappings":";AAAA,IAAO,IAAI,WAAW,WAAW,CAAC,CAAA;AAClC,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AACvC,gCAA2B,mBAE3B,CAAC,CAF6C;AAE9C,IAAI,CAAC,iBAAiB,EAAE,UAAA,CAAC;IACvB,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAA,CAAC;QACxB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAET;YACE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,+BAA+B,CAAC,CAAA;QAC/D,CAAC;QAED,MAAM,CAAC,yBAAc,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;aAChD,IAAI,CAAC,UAAA,KAAK,IAAI,OAAA,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,EAAvB,CAAuB,CAAC,CAAA;IAC3C,CAAC,CAAC,CAAA;IAEF,CAAC,CAAC,IAAI,CAAC,eAAe,EAAE,UAAA,CAAC;QACvB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAET;YACE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,+BAA+B,CAAC,CAAA;QAC/D,CAAC;QAED,MAAM,CAAC,yBAAc,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;aAC/C,IAAI,CAAC,IAAI,EAAE,UAAA,MAAM,IAAI,OAAA,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,EAAxB,CAAwB,CAAC,CAAA;IACnD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA","sourcesContent":["import test = require('blue-tape')\nimport Promise = require('any-promise')\nimport promiseFinally from './promise-finally'\n\ntest('promise-finally', t => {\n t.test('run on resolve', t => {\n t.plan(2)\n\n function cb () {\n t.equal(arguments.length, 0, 'should not have any arguments')\n }\n\n return promiseFinally(Promise.resolve('hello'), cb)\n .then(value => t.equal(value, 'hello'))\n })\n\n t.test('run on reject', t => {\n t.plan(2)\n\n function cb () {\n t.equal(arguments.length, 0, 'should not have any arguments')\n }\n\n return promiseFinally(Promise.reject('hello'), cb)\n .then(null, reason => t.equal(reason, 'hello'))\n })\n})\n"]}