UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,388 lines (1,387 loc) 210 kB
{ "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": "sinon", "range": [ 48, 53 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 9 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 56, 63 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 19 } } }, "arguments": [ { "type": "Literal", "value": "sinon", "raw": "'sinon'", "range": [ 64, 71 ], "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 27 } } } ], "range": [ 56, 72 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 28 } } }, "range": [ 48, 72 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 28 } } } ], "kind": "var", "range": [ 44, 73 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Rx", "range": [ 78, 80 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 83, 90 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 91, 110 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 36 } } } ], "range": [ 83, 111 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 37 } } }, "range": [ 78, 111 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 37 } } } ], "kind": "var", "range": [ 74, 112 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "SubscribeOnObservable_1", "range": [ 117, 140 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 27 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 143, 150 ], "loc": { "start": { "line": 5, "column": 30 }, "end": { "line": 5, "column": 37 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/observable/SubscribeOnObservable", "raw": "'../../dist/cjs/observable/SubscribeOnObservable'", "range": [ 151, 200 ], "loc": { "start": { "line": 5, "column": 38 }, "end": { "line": 5, "column": 87 } } } ], "range": [ 143, 201 ], "loc": { "start": { "line": 5, "column": 30 }, "end": { "line": 5, "column": 88 } } }, "range": [ 117, 201 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 88 } } } ], "kind": "var", "range": [ 113, 202 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 89 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 203, 211 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "SubscribeOnObservable", "raw": "'SubscribeOnObservable'", "range": [ 212, 235 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 32 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 255, 257 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should create Observable to be subscribed on specified scheduler", "raw": "'should create Observable to be subscribed on specified scheduler'", "range": [ 258, 324 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 73 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "e1", "range": [ 352, 354 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 357, 360 ], "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "--a--b--|", "raw": "'--a--b--|'", "range": [ 361, 372 ], "loc": { "start": { "line": 8, "column": 21 }, "end": { "line": 8, "column": 32 } } } ], "range": [ 357, 373 ], "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 33 } } }, "range": [ 352, 373 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 33 } } } ], "kind": "var", "range": [ 348, 374 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 34 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [ 387, 395 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 20 } } }, "init": { "type": "Literal", "value": "--a--b--|", "raw": "'--a--b--|'", "range": [ 398, 409 ], "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 34 } } }, "range": [ 387, 409 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 34 } } } ], "kind": "var", "range": [ 383, 410 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 35 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "sub", "range": [ 423, 426 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 15 } } }, "init": { "type": "Literal", "value": "^ !", "raw": "'^ !'", "range": [ 429, 440 ], "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 29 } } }, "range": [ 423, 440 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 29 } } } ], "kind": "var", "range": [ 419, 441 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 30 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "subscribe", "range": [ 454, 463 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 21 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "SubscribeOnObservable_1", "range": [ 470, 493 ], "loc": { "start": { "line": 11, "column": 28 }, "end": { "line": 11, "column": 51 } } }, "property": { "type": "Identifier", "name": "SubscribeOnObservable", "range": [ 494, 515 ], "loc": { "start": { "line": 11, "column": 52 }, "end": { "line": 11, "column": 73 } } }, "range": [ 470, 515 ], "loc": { "start": { "line": 11, "column": 28 }, "end": { "line": 11, "column": 73 } } }, "arguments": [ { "type": "Identifier", "name": "e1", "range": [ 516, 518 ], "loc": { "start": { "line": 11, "column": 74 }, "end": { "line": 11, "column": 76 } } }, { "type": "Literal", "value": 0, "raw": "0", "range": [ 520, 521 ], "loc": { "start": { "line": 11, "column": 78 }, "end": { "line": 11, "column": 79 } } }, { "type": "Identifier", "name": "rxTestScheduler", "range": [ 523, 538 ], "loc": { "start": { "line": 11, "column": 81 }, "end": { "line": 11, "column": 96 } } } ], "range": [ 466, 539 ], "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 97 } } }, "range": [ 454, 539 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 97 } } } ], "kind": "var", "range": [ 450, 540 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 98 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "expectObservable", "range": [ 549, 565 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 24 } } }, "arguments": [ { "type": "Identifier", "name": "subscribe", "range": [ 566, 575 ], "loc": { "start": { "line": 12, "column": 25 }, "end": { "line": 12, "column": 34 } } } ], "range": [ 549, 576 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 35 } } }, "property": { "type": "Identifier", "name": "toBe", "range": [ 577, 581 ], "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 40 } } }, "range": [ 549, 581 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 40 } } }, "arguments": [ { "type": "Identifier", "name": "expected", "range": [ 582, 590 ], "loc": { "start": { "line": 12, "column": 41 }, "end": { "line": 12, "column": 49 } } } ], "range": [ 549, 591 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 50 } } }, "range": [ 549, 592 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 51 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "expectSubscriptions", "range": [ 601, 620 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 27 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "e1", "range": [ 621, 623 ], "loc": { "start": { "line": 13, "column": 28 }, "end": { "line": 13, "column": 30 } } }, "property": { "type": "Identifier", "name": "subscriptions", "range": [ 624, 637 ], "loc": { "start": { "line": 13, "column": 31 }, "end": { "line": 13, "column": 44 } } }, "range": [ 621, 637 ], "loc": { "start": { "line": 13, "column": 28 }, "end": { "line": 13, "column": 44 } } } ], "range": [ 601, 638 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 45 } } }, "property": { "type": "Identifier", "name": "toBe", "range": [ 639, 643 ], "loc": { "start": { "line": 13, "column": 46 }, "end": { "line": 13, "column": 50 } } }, "range": [ 601, 643 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 50 } } }, "arguments": [ { "type": "Identifier", "name": "sub", "range": [ 644, 647 ], "loc": { "start": { "line": 13, "column": 51 }, "end": { "line": 13, "column": 54 } } } ], "range": [ 601, 648 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 55 } } }, "range": [ 601, 649 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 56 } } } ], "range": [ 338, 655 ], "loc": { "start": { "line": 7, "column": 87 }, "end": { "line": 14, "column": 5 } } }, "generator": false, "expression": false, "range": [ 326, 655 ], "loc": { "start": { "line": 7, "column": 75 }, "end": { "line": 14, "column": 5 } } } ], "range": [ 255, 656 ],