UNPKG

skypager-project

Version:
1,830 lines (1,808 loc) 322 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmory imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmory exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 138); /******/ }) /************************************************************************/ /******/ ({ /***/ 138: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(47); /***/ }, /***/ 47: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/document/index.spec.js", "ast": { "type": "File", "start": 0, "end": 1947, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 58, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1947, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 58, "column": 0 } }, "sourceType": "module", "body": [ { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_values" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "babel-runtime/core-js/object/values", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_values2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_values" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": ".", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 24 } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_2" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "_interopRequireDefault" }, "arguments": [ { "type": "Identifier", "name": "_" } ] } } ] }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_path" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "path", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 51 } } }, { "type": "FunctionDeclaration", "id": { "type": "Identifier", "name": "_interopRequireDefault" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "name": "obj" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "LogicalExpression", "left": { "type": "Identifier", "name": "obj" }, "operator": "&&", "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "obj" }, "property": { "type": "Identifier", "name": "__esModule" }, "computed": false } }, "consequent": { "type": "Identifier", "name": "obj" }, "alternate": { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "default" }, "value": { "type": "Identifier", "name": "obj" } } ] } } } ], "directives": [] }, "extra": { "parenthesized": true, "parenStart": 3 } }, { "type": "VariableDeclaration", "start": 78, "end": 122, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 44 } }, "declarations": [ { "type": "VariableDeclarator", "start": 84, "end": 122, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 44 } }, "id": { "type": "Identifier", "start": 84, "end": 92, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 14 }, "identifierName": "testRoot" }, "name": "testRoot" }, "init": { "type": "CallExpression", "start": 95, "end": 122, "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 44 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_path" }, "property": { "type": "Identifier", "start": 34, "end": 38, "name": "join" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "CallExpression", "start": 100, "end": 113, "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 35 } }, "callee": { "type": "MemberExpression", "start": 100, "end": 111, "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 33 } }, "object": { "type": "Identifier", "start": 100, "end": 107, "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 4, "column": 29 }, "identifierName": "process" }, "name": "process" }, "property": { "type": "Identifier", "start": 108, "end": 111, "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 4, "column": 33 }, "identifierName": "cwd" }, "name": "cwd" }, "computed": false }, "arguments": [] }, { "type": "StringLiteral", "start": 115, "end": 121, "loc": { "start": { "line": 4, "column": 37 }, "end": { "line": 4, "column": 43 } }, "extra": { "rawValue": "test", "raw": "'test'" }, "value": "test" } ] } } ], "kind": "var" }, { "type": "VariableDeclaration", "start": 123, "end": 174, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 129, "end": 174, "loc": { "start": { "line": 5, "column": 6 }, "end": { "line": 5, "column": 51 } }, "id": { "type": "Identifier", "start": 129, "end": 136, "loc": { "start": { "line": 5, "column": 6 }, "end": { "line": 5, "column": 13 }, "identifierName": "resolve" }, "name": "resolve" }, "init": { "type": "FunctionExpression", "start": 139, "end": 174, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 51 } }, "id": { "type": "Identifier", "start": 129, "end": 136, "loc": { "start": { "line": 5, "column": 6 }, "end": { "line": 5, "column": 13 }, "identifierName": "resolve" }, "name": "resolve" }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 140, "end": 143, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 20 }, "identifierName": "rel" }, "name": "rel" } ], "body": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": { "type": "CallExpression", "start": 148, "end": 174, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 51 } }, "callee": { "type": "SequenceExpression", "expressions": [ { "type": "NumericLiteral", "value": 0 }, { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_path" }, "property": { "type": "Identifier", "start": 40, "end": 47, "name": "resolve" }, "computed": false } ], "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "Identifier", "start": 160, "end": 168, "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 45 }, "identifierName": "testRoot" }, "name": "testRoot" }, { "type": "Identifier", "start": 170, "end": 173, "loc": { "start": { "line": 5, "column": 47 }, "end": { "line": 5, "column": 50 }, "identifierName": "rel" }, "name": "rel" } ] } } ], "directives": [] }, "shadow": true } } ], "kind": "var" }, { "type": "ExpressionStatement", "start": 176, "end": 1213, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 37, "column": 2 } }, "expression": { "type": "CallExpression", "start": 176, "end": 1213, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 37, "column": 2 } }, "callee": { "type": "Identifier", "start": 176, "end": 184, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 8 }, "identifierName": "describe" }, "name": "describe" }, "arguments": [ { "type": "StringLiteral", "start": 185, "end": 204, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 28 } }, "extra": { "rawValue": "Skypager Document", "raw": "'Skypager Document'" }, "value": "Skypager Document" }, { "type": "FunctionExpression", "start": 206, "end": 1212, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 37, "column": 1 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 217, "end": 1212, "loc": { "start": { "line": 7, "column": 41 }, "end": { "line": 37, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 221, "end": 453, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 14, "column": 4 } }, "expression": { "type": "CallExpression", "start": 221, "end": 453, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 14, "column": 4 } }, "callee": { "type": "Identifier", "start": 221, "end": 223, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 4 }, "identifierName": "it" }, "name": "it" }, "arguments": [ { "type": "StringLiteral", "start": 224, "end": 235, "loc": { "start": { "line": 8, "column": 5 }, "end": { "line": 8, "column": 16 } }, "extra": { "rawValue": "Has an ID", "raw": "'Has an ID'" }, "value": "Has an ID" }, { "type": "FunctionExpression", "start": 237, "end": 452, "loc": { "start": { "line": 8, "column": 18 }, "end": { "line": 14, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 248, "end": 452, "loc": { "start": { "line": 8, "column": 29 }, "end": { "line": 14, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 254, "end": 384, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 6 } }, "declarations": [ { "type": "VariableDeclarator", "start": 260, "end": 384, "loc": { "start": { "line": 9, "column": 10 }, "end": { "line": 11, "column": 6 } }, "id": { "type": "Identifier", "start": 260, "end": 263, "loc": { "start": { "line": 9, "column": 10 }, "end": { "line": 9, "column": 13 }, "identifierName": "doc" }, "name": "doc" }, "init": { "type": "NewExpression", "start": 266, "end": 384, "loc": { "start": { "line": 9, "column": 16 }, "end": { "line": 11, "column": 6 } }, "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "StringLiteral", "value": "file://" }, "right": { "type": "CallExpression", "start": 289, "end": 338, "loc": { "start": { "line": 9, "column": 39 }, "end": { "line": 9, "column": 88 } }, "callee": { "type": "Identifier", "start": 289, "end": 296, "loc": { "start": { "line": 9, "column": 39 }, "end": { "line": 9, "column": 46 }, "identifierName": "resolve" }, "name": "resolve" }, "arguments": [ { "type": "StringLiteral", "start": 297, "end": 337, "loc": { "start": { "line": 9, "column": 47 }, "end": { "line": 9, "column": 87 } }, "extra": { "rawValue": "./fixtures/testcases/structure-spec.md", "raw": "'./fixtures/testcases/structure-spec.md'" }, "value": "./fixtures/testcases/structure-spec.md" } ] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "ObjectExpression", "start": 342, "end": 383, "loc": { "start": { "line": 9, "column": 92 }, "end": { "line": 11, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 350, "end": 377, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 33 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 350, "end": 353, "loc": { "start": { "line": 10, "column": 6 }, "end": { "line": 10, "column": 9 }, "identifierName": "cwd" }, "name": "cwd" }, "value": { "type": "BinaryExpression", "start": 355, "end": 377, "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 33 } }, "left": { "type": "Identifier", "start": 355, "end": 363, "loc": { "start": { "line": 10, "column": 11 }, "end": { "line": 10, "column": 19 }, "identifierName": "testRoot" }, "name": "testRoot" }, "operator": "+", "right": { "type": "StringLiteral", "start": 366, "end": 377, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 33 } }, "extra": { "rawValue": "/fixtures", "raw": "'/fixtures'" }, "value": "/fixtures" } } } ] } ] } } ], "kind": "var" }, { "type": "ExpressionStatement", "start": 390, "end": 448, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 62 } }, "expression": { "type": "CallExpression", "start": 390, "end": 448, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 62 } }, "callee": { "type": "MemberExpression", "start": 390, "end": 414, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 28 } }, "object": { "type": "MemberExpression", "start": 390, "end": 405, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 19 } }, "object": { "type": "MemberExpression", "start": 390, "end": 400, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 14 } }, "object": { "type": "Identifier", "start": 390, "end": 393, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 7 }, "identifierName": "doc" }, "name": "doc" }, "property": { "type": "Identifier", "start": 394, "end": 400, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 14 }, "identifierName": "should" }, "name": "should" }, "computed": false }, "property": { "type": "Identifier", "start": 401, "end": 405, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 19 }, "identifierName": "have" }, "name": "have" }, "computed": false }, "property": { "type": "Identifier", "start": 406, "end": 414, "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 28 }, "identifierName": "property" }, "name": "property" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 415, "end": 419, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 33 } }, "extra": { "rawValue": "id", "raw": "'id'" }, "value": "id" }, { "type": "StringLiteral", "start": 421, "end": 447, "loc": { "start": { "line": 13, "column": 35 }, "end": { "line": 13, "column": 61 } }, "extra": { "rawValue": "testcases/structure-spec", "raw": "'testcases/structure-spec'" }, "value": "testcases/structure-spec" } ] } } ], "directives": [] } } ] } }, { "type": "ExpressionStatement", "start": 457, "end": 744, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 22, "column": 4 } }, "expression": { "type": "CallExpression", "start": 457, "end": 744, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 22, "column": 4 } }, "callee": { "type": "Identifier", "start": 457, "end": 459, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 4 }, "identifierName": "it" }, "name": "it" }, "arguments": [ { "type": "StringLiteral", "start": 460, "end": 478, "loc": { "start": { "line": 16, "column": 5 }, "end": { "line": 16, "column": 23 } }, "extra": { "rawValue": "Has a parsed URI", "raw": "'Has a parsed URI'" }, "value": "Has a parsed URI" }, { "type": "FunctionExpression", "start": 480, "end": 743, "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 22, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 491, "end": 743, "loc": { "start": { "line": 16, "column": 36 }, "end": { "line": 22, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 497, "end": 627, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 19, "column": 6 } }, "declarations": [ { "type": "VariableDeclarator", "start": 503, "end": 627, "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 19, "column": 6 } }, "id": { "type": "Identifier", "start": 503, "end": 506, "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 13 }, "identifierName": "doc" }, "name": "doc" }, "init": { "type": "NewExpression", "start": 509, "end": 627, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 19, "column": 6 } }, "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_2" }, "property": { "type": "Identifier", "name": "default" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "StringLiteral", "value": "file://" }, "right": { "type": "CallExpression", "start": 532, "end": 581, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 88 } }, "callee": { "type": "Identifier", "start": 532, "end": 539, "loc": { "start": { "line": 17, "column": 39 }, "end": { "line": 17, "column": 46 }, "identifierName": "resolve" }, "name": "resolve" }, "arguments": [ { "type": "StringLiteral", "start": 540, "end": 580, "loc": { "start": { "line": 17, "column": 47 }, "end": { "line": 17, "column": 87 } }, "extra": { "rawValue": "./fixtures/testcases/structure-spec.md", "raw": "'./fixtures/testcases/structure-spec.md'" }, "value": "./fixtures/testcases/structure-spec.md" } ] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "ObjectExpression", "start": 585, "end": 626, "loc": { "start": { "line": 17, "column": 92 }, "end": { "line": 19, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 593, "end": 620, "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 33 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 593, "end": 596, "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 9 }, "identifierName": "cwd" }, "name": "cwd" }, "value": { "type": "BinaryExpression", "start": 598, "end": 620, "loc": { "start": { "line": 18, "column": 11 }, "end": { "line": 18, "column": 33 } }, "left": { "type": "Identifier", "start": 598, "end": 606, "loc": { "start": { "line": 18, "column": 11 }, "end": { "line": 18, "column": 19 }, "identifierName": "testRoot" }, "name": "testRoot" }, "operator": "+", "right": { "type": "StringLiteral", "start": 609, "end": 620, "loc": { "start": { "line": 18, "column": 22 }, "end": { "line": 18, "column": 33 } }, "extra": { "rawValue": "/fixtures", "raw": "'/fixtures'" }, "value": "/fixtures" } } } ] } ] } } ], "kind": "var" }, { "type": "ExpressionStatement", "start": 632, "end": 690, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 62 } }, "expression": { "type": "CallExpression", "start": 632, "end": 690, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 62 } }, "callee": { "type": "MemberExpression", "start": 632, "end": 680, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 52 } }, "object": { "type": "MemberExpression", "start": 632, "end": 677, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 49 } }, "object": { "type": "MemberExpression", "start": 632, "end": 674, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 46 } }, "object": { "type": "CallExpression", "start": 632, "end": 669, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 41 } }, "callee": { "type": "MemberExpression", "start": 632, "end": 656, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 28 } }, "object": { "type": "MemberExpression", "start": 632, "end": 647, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 19 } }, "object": { "type": "MemberExpression",