1 line
34 KiB
JSON
1 line
34 KiB
JSON
{"id":"test/test.ts","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"@pushrocks/tapbundle","loc":{"line":46,"column":26},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/test/test.ts","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/tapbundle/dist/index.js"},{"name":"@pushrocks/smartlog","loc":{"line":47,"column":36},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/test/test.ts","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/@pushrocks/smartlog/dist/index.js"},{"name":"../ts/index","loc":{"line":58,"column":55},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/test/test.ts","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/ts/index.ts"}],"generated":{"js":"\"use strict\";\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : new P(function (resolve) {\n resolve(result.value);\n }).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nvar _this = this;\n\nexports.__esModule = true;\n\nvar tapbundle_1 = require(\"@pushrocks/tapbundle\");\n\nvar smartlog = __importStar(require(\"@pushrocks/smartlog\"));\n\nvar logger = smartlog.defaultLogger;\nvar logContext = {\n company: 'Lossless GmbH',\n companyunit: 'Lossless.Cloud',\n containerName: 'testContainer',\n environment: 'staging',\n runtime: 'chrome',\n zone: 'servezone'\n}; // import the module to test\n\nvar smartlogDestinationDevtools = __importStar(require(\"../ts/index\"));\n\nvar testDestination;\ntapbundle_1.tap.test('first test', function () {\n return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n testDestination = new smartlogDestinationDevtools.SmartlogDestinationDevtools();\n return [2\n /*return*/\n ];\n });\n });\n});\ntapbundle_1.tap.test('should log a normal message', function () {\n return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n testDestination.handleLog({\n timestamp: Date.now(),\n type: 'log',\n context: logContext,\n level: 'info',\n message: 'wait, what? Hi, this is a message!'\n });\n return [2\n /*return*/\n ];\n });\n });\n});\ntapbundle_1.tap.test('should log a success message', function () {\n return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n testDestination.handleLog({\n timestamp: Date.now(),\n context: logContext,\n type: 'log',\n level: 'info',\n message: 'success: Hi, this is a message!'\n });\n return [2\n /*return*/\n ];\n });\n });\n});\ntapbundle_1.tap.start();","map":{"mappings":[{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":9}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":152,"column":16}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":18}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":25}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":26}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":48}},{"source":"test/test.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":156,"column":49}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":27}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":28}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":35}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":36}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":57}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":58}},{"source":"test/test.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":158,"column":59}},{"source":"test/test.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":160,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":7,"column":6},"generated":{"line":160,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":7,"column":12},"generated":{"line":160,"column":10}},{"source":"test/test.ts","name":null,"original":{"line":7,"column":15},"generated":{"line":160,"column":13}},{"source":"test/test.ts","name":null,"original":{"line":7,"column":23},"generated":{"line":160,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":7,"column":24},"generated":{"line":160,"column":22}},{"source":"test/test.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":160,"column":35}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":161,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":6},"generated":{"line":161,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":16},"generated":{"line":161,"column":14}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":32},"generated":{"line":161,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":9,"column":2},"generated":{"line":162,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":9,"column":2},"generated":{"line":162,"column":2}},{"source":"test/test.ts","name":null,"original":{"line":9,"column":9},"generated":{"line":162,"column":9}},{"source":"test/test.ts","name":null,"original":{"line":9,"column":11},"generated":{"line":162,"column":11}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":32},"generated":{"line":162,"column":26}},{"source":"test/test.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":163,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":163,"column":2}},{"source":"test/test.ts","name":null,"original":{"line":10,"column":13},"generated":{"line":163,"column":13}},{"source":"test/test.ts","name":null,"original":{"line":10,"column":15},"generated":{"line":163,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":32},"generated":{"line":163,"column":31}},{"source":"test/test.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":164,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":164,"column":2}},{"source":"test/test.ts","name":null,"original":{"line":11,"column":15},"generated":{"line":164,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":11,"column":17},"generated":{"line":164,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":32},"generated":{"line":164,"column":32}},{"source":"test/test.ts","name":null,"original":{"line":12,"column":2},"generated":{"line":165,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":12,"column":2},"generated":{"line":165,"column":2}},{"source":"test/test.ts","name":null,"original":{"line":12,"column":13},"generated":{"line":165,"column":13}},{"source":"test/test.ts","name":null,"original":{"line":12,"column":15},"generated":{"line":165,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":32},"generated":{"line":165,"column":24}},{"source":"test/test.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":166,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":166,"column":2}},{"source":"test/test.ts","name":null,"original":{"line":13,"column":9},"generated":{"line":166,"column":9}},{"source":"test/test.ts","name":null,"original":{"line":13,"column":11},"generated":{"line":166,"column":11}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":32},"generated":{"line":166,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":14,"column":2},"generated":{"line":167,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":14,"column":2},"generated":{"line":167,"column":2}},{"source":"test/test.ts","name":null,"original":{"line":14,"column":6},"generated":{"line":167,"column":6}},{"source":"test/test.ts","name":null,"original":{"line":14,"column":8},"generated":{"line":167,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":32},"generated":{"line":168,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":168,"column":1}},{"source":"test/test.ts","name":null,"original":{"line":17,"column":0},"generated":{"line":168,"column":3}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":31}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":34}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":46}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":47}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":54}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":55}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":68}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":69}},{"source":"test/test.ts","name":null,"original":{"line":18,"column":0},"generated":{"line":170,"column":70}},{"source":"test/test.ts","name":null,"original":{"line":20,"column":0},"generated":{"line":172,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":20,"column":4},"generated":{"line":172,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":20,"column":0},"generated":{"line":172,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":173,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":173,"column":11}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":173,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":173,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":4},"generated":{"line":173,"column":16}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":173,"column":20}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":9},"generated":{"line":173,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":173,"column":33}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":173,"column":35}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":173,"column":47}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":9}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":18}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":24}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":26}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":31}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":32}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":34}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":39}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":40}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":42}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":174,"column":54}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":2},"generated":{"line":176,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":2},"generated":{"line":176,"column":6}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":176,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":20},"generated":{"line":176,"column":24}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":24},"generated":{"line":176,"column":28}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":51},"generated":{"line":176,"column":55}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":52},"generated":{"line":176,"column":56}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":20},"generated":{"line":176,"column":83}},{"source":"test/test.ts","name":null,"original":{"line":23,"column":2},"generated":{"line":176,"column":85}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":181,"column":3}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":23},"generated":{"line":181,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":24,"column":1},"generated":{"line":182,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":22,"column":0},"generated":{"line":182,"column":1}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":0},"generated":{"line":183,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":0},"generated":{"line":183,"column":11}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":0},"generated":{"line":183,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":0},"generated":{"line":183,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":4},"generated":{"line":183,"column":16}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":0},"generated":{"line":183,"column":20}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":9},"generated":{"line":183,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":0},"generated":{"line":183,"column":50}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":183,"column":52}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":183,"column":64}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":9}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":18}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":24}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":26}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":31}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":32}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":34}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":39}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":40}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":42}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":184,"column":54}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":2},"generated":{"line":186,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":2},"generated":{"line":186,"column":6}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":17},"generated":{"line":186,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":18},"generated":{"line":186,"column":22}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":2},"generated":{"line":186,"column":31}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":28},"generated":{"line":186,"column":32}},{"source":"test/test.ts","name":null,"original":{"line":28,"column":4},"generated":{"line":187,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":28,"column":4},"generated":{"line":187,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":28,"column":13},"generated":{"line":187,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":28,"column":15},"generated":{"line":187,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":28,"column":19},"generated":{"line":187,"column":23}},{"source":"test/test.ts","name":null,"original":{"line":28,"column":20},"generated":{"line":187,"column":24}},{"source":"test/test.ts","name":null,"original":{"line":28,"column":15},"generated":{"line":187,"column":27}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":28},"generated":{"line":187,"column":29}},{"source":"test/test.ts","name":null,"original":{"line":29,"column":4},"generated":{"line":188,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":29,"column":4},"generated":{"line":188,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":29,"column":8},"generated":{"line":188,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":29,"column":10},"generated":{"line":188,"column":14}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":28},"generated":{"line":188,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":30,"column":4},"generated":{"line":189,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":30,"column":4},"generated":{"line":189,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":30,"column":11},"generated":{"line":189,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":30,"column":13},"generated":{"line":189,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":28},"generated":{"line":189,"column":27}},{"source":"test/test.ts","name":null,"original":{"line":31,"column":4},"generated":{"line":190,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":31,"column":4},"generated":{"line":190,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":31,"column":9},"generated":{"line":190,"column":13}},{"source":"test/test.ts","name":null,"original":{"line":31,"column":11},"generated":{"line":190,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":28},"generated":{"line":190,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":32,"column":4},"generated":{"line":191,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":32,"column":4},"generated":{"line":191,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":32,"column":11},"generated":{"line":191,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":32,"column":13},"generated":{"line":191,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":28},"generated":{"line":192,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":27,"column":2},"generated":{"line":192,"column":7}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":197,"column":3}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":40},"generated":{"line":197,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":34,"column":1},"generated":{"line":198,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":26,"column":0},"generated":{"line":198,"column":1}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":199,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":199,"column":11}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":199,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":199,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":4},"generated":{"line":199,"column":16}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":199,"column":20}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":9},"generated":{"line":199,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":199,"column":51}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":199,"column":53}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":199,"column":65}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":9}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":18}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":24}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":26}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":31}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":32}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":34}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":39}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":40}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":42}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":200,"column":54}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":202,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":202,"column":6}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":17},"generated":{"line":202,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":18},"generated":{"line":202,"column":22}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":202,"column":31}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":28},"generated":{"line":202,"column":32}},{"source":"test/test.ts","name":null,"original":{"line":38,"column":4},"generated":{"line":203,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":38,"column":4},"generated":{"line":203,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":38,"column":13},"generated":{"line":203,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":38,"column":15},"generated":{"line":203,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":38,"column":19},"generated":{"line":203,"column":23}},{"source":"test/test.ts","name":null,"original":{"line":38,"column":20},"generated":{"line":203,"column":24}},{"source":"test/test.ts","name":null,"original":{"line":38,"column":15},"generated":{"line":203,"column":27}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":28},"generated":{"line":203,"column":29}},{"source":"test/test.ts","name":null,"original":{"line":39,"column":4},"generated":{"line":204,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":39,"column":4},"generated":{"line":204,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":39,"column":11},"generated":{"line":204,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":39,"column":13},"generated":{"line":204,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":28},"generated":{"line":204,"column":27}},{"source":"test/test.ts","name":null,"original":{"line":40,"column":4},"generated":{"line":205,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":40,"column":4},"generated":{"line":205,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":40,"column":8},"generated":{"line":205,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":40,"column":10},"generated":{"line":205,"column":14}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":28},"generated":{"line":205,"column":19}},{"source":"test/test.ts","name":null,"original":{"line":41,"column":4},"generated":{"line":206,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":41,"column":4},"generated":{"line":206,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":41,"column":9},"generated":{"line":206,"column":13}},{"source":"test/test.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":206,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":28},"generated":{"line":206,"column":21}},{"source":"test/test.ts","name":null,"original":{"line":42,"column":4},"generated":{"line":207,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":42,"column":4},"generated":{"line":207,"column":8}},{"source":"test/test.ts","name":null,"original":{"line":42,"column":11},"generated":{"line":207,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":42,"column":13},"generated":{"line":207,"column":17}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":28},"generated":{"line":208,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":208,"column":7}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":213,"column":3}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":41},"generated":{"line":213,"column":4}},{"source":"test/test.ts","name":null,"original":{"line":44,"column":1},"generated":{"line":214,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":214,"column":1}},{"source":"test/test.ts","name":null,"original":{"line":46,"column":0},"generated":{"line":215,"column":0}},{"source":"test/test.ts","name":null,"original":{"line":46,"column":0},"generated":{"line":215,"column":11}},{"source":"test/test.ts","name":null,"original":{"line":46,"column":0},"generated":{"line":215,"column":12}},{"source":"test/test.ts","name":null,"original":{"line":46,"column":0},"generated":{"line":215,"column":15}},{"source":"test/test.ts","name":null,"original":{"line":46,"column":4},"generated":{"line":215,"column":16}},{"source":"test/test.ts","name":null,"original":{"line":46,"column":0},"generated":{"line":215,"column":21}}],"sources":{"test/test.ts":"import { expect, tap } from '@pushrocks/tapbundle';\n\n// preparation\nimport { ILogContext } from '@pushrocks/smartlog-interfaces';\nimport * as smartlog from '@pushrocks/smartlog';\n\nconst logger = smartlog.defaultLogger;\nconst logContext: ILogContext = {\n company: 'Lossless GmbH',\n companyunit: 'Lossless.Cloud',\n containerName: 'testContainer',\n environment: 'staging',\n runtime: 'chrome',\n zone: 'servezone'\n};\n\n// import the module to test\nimport * as smartlogDestinationDevtools from '../ts/index';\n\nlet testDestination: smartlogDestinationDevtools.SmartlogDestinationDevtools;\n\ntap.test('first test', async () => {\n testDestination = new smartlogDestinationDevtools.SmartlogDestinationDevtools();\n});\n\ntap.test('should log a normal message', async () => {\n testDestination.handleLog({\n timestamp: Date.now(),\n type: 'log',\n context: logContext,\n level: 'info',\n message: 'wait, what? Hi, this is a message!'\n });\n});\n\ntap.test('should log a success message', async () => {\n testDestination.handleLog({\n timestamp: Date.now(),\n context: logContext,\n type: 'log',\n level: 'info',\n message: 'success: Hi, this is a message!'\n });\n});\n\ntap.start();\n"},"lineCount":null}},"hash":"45c2aef7a4c27d2121031be8573c5455","cacheData":{"env":{}}} |