smartlog-destination-devtools/.cache/ca/f880624964bb99a9fb4e8d9f23bc43.json

1 line
73 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.tap.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/ts/tapbundle.classes.tap.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/package.json","includedInParent":true,"mtime":1542063791802},{"name":"./tapbundle.classes.taptest","loc":{"line":11,"column":44},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.tap.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.taptest.js"},{"name":"./tapbundle.classes.tapwrap","loc":{"line":12,"column":44},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.tap.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.tapwrap.js"},{"name":"process","parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/tapbundle.classes.tap.js","resolved":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/process/browser.js"}],"generated":{"js":"var process = require(\"process\");\n\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tapbundle_classes_taptest_1 = require(\"./tapbundle.classes.taptest\");\nconst tapbundle_classes_tapwrap_1 = require(\"./tapbundle.classes.tapwrap\");\nclass Tap {\n constructor() {\n /**\n * skips a test\n * tests marked with tap.skip.test() are never executed\n */\n this.skip = {\n test: (descriptionArg, functionArg) => {\n console.log(`skipped test: ${descriptionArg}`);\n },\n testParallel: (descriptionArg, functionArg) => {\n console.log(`skipped test: ${descriptionArg}`);\n }\n };\n /**\n * only executes tests marked as ONLY\n */\n this.only = {\n test: (descriptionArg, testFunctionArg) => {\n this.test(descriptionArg, testFunctionArg, 'only');\n }\n };\n this._tapTests = [];\n this._tapTestsOnly = [];\n }\n /**\n * Normal test function, will run one by one\n * @param testDescription - A description of what the test does\n * @param testFunction - A Function that returns a Promise and resolves or rejects\n */\n test(testDescription, testFunction, modeArg = 'normal') {\n return __awaiter(this, void 0, void 0, function* () {\n let localTest = new tapbundle_classes_taptest_1.TapTest({\n description: testDescription,\n testFunction: testFunction,\n parallel: false\n });\n if (modeArg === 'normal') {\n this._tapTests.push(localTest);\n }\n else if (modeArg === 'only') {\n this._tapTestsOnly.push(localTest);\n }\n return localTest;\n