UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,384 lines (1,383 loc) 1.28 MB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 0, 12 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, "range": [ 0, 13 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "chai_1", "range": [ 18, 24 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 10 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 27, 34 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 35, 41 ], "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 27 } } } ], "range": [ 27, 42 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 28 } } }, "range": [ 18, 42 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 28 } } } ], "kind": "var", "range": [ 14, 43 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Rx", "range": [ 48, 50 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 53, 60 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 61, 80 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 36 } } } ], "range": [ 53, 81 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 37 } } }, "range": [ 48, 81 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 37 } } } ], "kind": "var", "range": [ 44, 82 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "test_helper_1", "range": [ 87, 100 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 17 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 103, 110 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 27 } } }, "arguments": [ { "type": "Literal", "value": "../helpers/test-helper", "raw": "'../helpers/test-helper'", "range": [ 111, 135 ], "loc": { "start": { "line": 4, "column": 28 }, "end": { "line": 4, "column": 52 } } } ], "range": [ 103, 136 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 53 } } }, "range": [ 87, 136 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 53 } } } ], "kind": "var", "range": [ 83, 137 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 54 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Observable", "range": [ 142, 152 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 155, 157 ], "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 19 } } }, "property": { "type": "Identifier", "name": "Observable", "range": [ 158, 168 ], "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 30 } } }, "range": [ 155, 168 ], "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 30 } } }, "range": [ 142, 168 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 30 } } } ], "kind": "var", "range": [ 138, 169 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 31 } }, "trailingComments": [ { "type": "Block", "value": "* @test {forkJoin} ", "range": [ 170, 193 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 23 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 194, 202 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Observable.forkJoin", "raw": "'Observable.forkJoin'", "range": [ 203, 224 ], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 30 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 244, 246 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should join the last values of the provided observables into an array", "raw": "'should join the last values of the provided observables into an array'", "range": [ 247, 318 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 78 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e1", "range": [ 346, 348 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Observable", "range": [ 351, 361 ], "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 27 } } }, "property": { "type": "Identifier", "name": "forkJoin", "range": [ 362, 370 ], "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 36 } } }, "range": [ 351, 370 ], "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 36 } } }, "arguments": [ { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 371, 374 ], "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 9, "column": 40 } } }, "arguments": [ { "type": "Literal", "value": "--a--b--c--d--|", "raw": "'--a--b--c--d--|'", "range": [ 375, 392 ], "loc": { "start": { "line": 9, "column": 41 }, "end": { "line": 9, "column": 58 } } } ], "range": [ 371, 393 ], "loc": { "start": { "line": 9, "column": 37 }, "end": { "line": 9, "column": 59 } } }, { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 395, 398 ], "loc": { "start": { "line": 9, "column": 61 }, "end": { "line": 9, "column": 64 } } }, "arguments": [ { "type": "Literal", "value": "(b|)", "raw": "'(b|)'", "range": [ 399, 405 ], "loc": { "start": { "line": 9, "column": 65 }, "end": { "line": 9, "column": 71 } } } ], "range": [ 395, 406 ], "loc": { "start": { "line": 9, "column": 61 }, "end": { "line": 9, "column": 72 } } }, { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 408, 411 ], "loc": { "start": { "line": 9, "column": 74 }, "end": { "line": 9, "column": 77 } } }, "arguments": [ { "type": "Literal", "value": "--1--2--3--|", "raw": "'--1--2--3--|'", "range": [ 412, 426 ], "loc": { "start": { "line": 9, "column": 78 }, "end": { "line": 9, "column": 92 } } } ], "range": [ 408, 427 ], "loc": { "start": { "line": 9, "column": 74 }, "end": { "line": 9, "column": 93 } } } ], "range": [ 351, 428 ], "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 94 } } }, "range": [ 346, 428 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 94 } } } ], "kind": "var", "range": [ 342, 429 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 95 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [ 442, 450 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 20 } } }, "init": { "type": "Literal", "value": "--------------(x|)", "raw": "'--------------(x|)'", "range": [ 453, 473 ], "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 43 } } }, "range": [ 442, 473 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 43 } } } ], "kind": "var", "range": [ 438, 474 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 44 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "expectObservable", "range": [ 483, 499 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 24 } } }, "arguments": [ { "type": "Identifier", "name": "e1", "range": [ 500, 502 ], "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 27 } } } ], "range": [ 483, 503 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 28 } } }, "property": { "type": "Identifier", "name": "toBe", "range": [ 504, 508 ], "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 11, "column": 33 } } }, "range": [ 483, 508 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 33 } } }, "arguments": [ { "type": "Identifier", "name": "expected", "range": [ 509, 517 ], "loc": { "start": { "line": 11, "column": 34 }, "end": { "line": 11, "column": 42 } } }, { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "x", "range": [ 521, 522 ], "loc": { "start": { "line": 11, "column": 46 }, "end": { "line": 11, "column": 47 } } }, "value": { "type": "ArrayExpression", "elements": [ { "type": "Literal", "value": "d", "raw": "'d'", "range": [ 525, 528 ], "loc": { "start": { "line": 11, "column": 50 }, "end": { "line": 11, "column": 53 } } }, { "type": "Literal", "value": "b", "raw": "'b'", "range": [ 530, 533 ], "loc": { "start": { "line": 11, "column": 55 }, "end": { "line": 11, "column": 58 } } }, { "type": "Literal", "value": "3", "raw": "'3'", "range": [ 535, 538 ], "loc": { "start": { "line": 11, "column": 60 }, "end": { "line": 11, "column": 63 } } } ], "range": [ 524, 539 ], "loc": { "start": { "line": 11, "column": 49 }, "end": { "line": 11, "column": 64 } } }, "kind": "init", "method": false, "shorthand": false, "computed": false, "range": [ 521, 539 ], "loc": { "start": { "line": 11, "column": 46 }, "end": { "line": 11, "column": 64 } } } ], "range": [ 519, 541 ], "loc": { "start": { "line": 11, "column": 44 }, "end": { "line": 11, "column": 66 } } } ], "range": [ 483, 542 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 67 } } }, "range": [ 483, 543 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 68 } } } ], "range": [ 332, 549 ], "loc": { "start": { "line": 8, "column": 92 }, "end": { "line": 12, "column": 5 } } }, "generator": false, "expression": false, "range": [ 320, 549 ], "loc": { "start": { "line": 8, "column": 80 }, "end": { "line": 12, "column": 5 } } } ], "range": [ 244, 550 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 12, "column": 6 } }, "_esdocTestId": 318, "_esdocTestName": "it318" }, "range": [ 244, 551 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 12, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 556, 558 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should allow emit null or undefined", "raw": "'should allow emit null or undefined'", "range": [ 559, 596 ], "loc": { "start": { "line": 13, "column": 7 }, "end": { "line": 13, "column": 44 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e2", "range": [ 624, 626 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 14