@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
986 lines • 30.7 kB
JSON
{
"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": "Rx",
"range": [
18,
20
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 6
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
23,
30
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 16
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/Rx",
"raw": "'../../dist/cjs/Rx'",
"range": [
31,
50
],
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 36
}
}
}
],
"range": [
23,
51
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 37
}
}
},
"range": [
18,
51
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 37
}
}
}
],
"kind": "var",
"range": [
14,
52
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 38
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "Observable",
"range": [
57,
67
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 14
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Rx",
"range": [
70,
72
],
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "Observable",
"range": [
73,
83
],
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 30
}
}
},
"range": [
70,
83
],
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 30
}
}
},
"range": [
57,
83
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 30
}
}
}
],
"kind": "var",
"range": [
53,
84
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 31
}
},
"trailingComments": [
{
"type": "Block",
"value": "* @test {empty} ",
"range": [
85,
105
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 20
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
106,
114
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "Observable.empty",
"raw": "'Observable.empty'",
"range": [
115,
133
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 27
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "asDiagram",
"range": [
153,
162
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 13
}
}
},
"arguments": [
{
"type": "Literal",
"value": "empty",
"raw": "'empty'",
"range": [
163,
170
],
"loc": {
"start": {
"line": 6,
"column": 14
},
"end": {
"line": 6,
"column": 21
}
}
}
],
"range": [
153,
171
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 22
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should create a cold observable with only complete",
"raw": "'should create a cold observable with only complete'",
"range": [
172,
224
],
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 75
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "expected",
"range": [
252,
260
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 20
}
}
},
"init": {
"type": "Literal",
"value": "|",
"raw": "'|'",
"range": [
263,
266
],
"loc": {
"start": {
"line": 7,
"column": 23
},
"end": {
"line": 7,
"column": 26
}
}
},
"range": [
252,
266
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 26
}
}
}
],
"kind": "var",
"range": [
248,
267
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 27
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "e1",
"range": [
280,
282
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 14
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Observable",
"range": [
285,
295
],
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "empty",
"range": [
296,
301
],
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 33
}
}
},
"range": [
285,
301
],
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 33
}
}
},
"arguments": [],
"range": [
285,
303
],
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 35
}
}
},
"range": [
280,
303
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 35
}
}
}
],
"kind": "var",
"range": [
276,
304
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 36
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "expectObservable",
"range": [
313,
329
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 24
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "e1",
"range": [
330,
332
],
"loc": {
"start": {
"line": 9,
"column": 25
},
"end": {
"line": 9,
"column": 27
}
}
}
],
"range": [
313,
333
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"name": "toBe",
"range": [
334,
338
],
"loc": {
"start": {
"line": 9,
"column": 29
},
"end": {
"line": 9,
"column": 33
}
}
},
"range": [
313,
338
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 33
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "expected",
"range": [
339,
347
],
"loc": {
"start": {
"line": 9,
"column": 34
},
"end": {
"line": 9,
"column": 42
}
}
}
],
"range": [
313,
348
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 43
}
}
},
"range": [
313,
349
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 44
}
}
}
],
"range": [
238,
355
],
"loc": {
"start": {
"line": 6,
"column": 89
},
"end": {
"line": 10,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
226,
355
],
"loc": {
"start": {
"line": 6,
"column": 77
},
"end": {
"line": 10,
"column": 5
}
}
}
],
"range": [
153,
356
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 10,
"column": 6
}
}
},
"range": [
153,
357
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 10,
"column": 7
}
}
}
],
"range": [
147,
359
],
"loc": {
"start": {
"line": 5,
"column": 41
},
"end": {
"line": 11,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
135,
359
],
"loc": {
"start": {
"line": 5,
"column": 29
},
"end": {
"line": 11,
"column": 1
}
}
}
],
"range": [
106,
360
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 11,
"column": 2
}
},
"_esdocTestId": 316,
"_esdocTestName": "describe316"
},
"range": [
106,
361
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
},
"leadingComments": [
{
"type": "Block",
"value": "* @test {empty} ",
"range": [
85,
105
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 20
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "# sourceMappingURL=empty-spec.js.map",
"range": [
362,
400
],
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 12,
"column": 38
}
}
}
]
}
],
"sourceType": "module",
"range": [
0,
361
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
},
"comments": [
{
"type": "Block",
"value": "* @test {empty} ",
"range": [
85,
105
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 20
}
}
},
{
"type": "Line",
"value": "# sourceMappingURL=empty-spec.js.map",
"range": [
362,
400
],
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 12,
"column": 38
}
}
}
]
}