UNPKG

dirtybomb

Version:
1,425 lines (1,424 loc) 77.5 kB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 40, 52 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 12 } } }, "range": [ 40, 53 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 13 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Created by austin on 6/8/16.\n ", "range": [ 0, 39 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 3 } } } ] }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "chai", "range": [ 62, 66 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 11 } } }, "range": [ 62, 66 ], "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 11 } } } ], "source": { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 72, 78 ], "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 23 } } }, "range": [ 55, 79 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 24 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Atmosphere", "range": [ 88, 98 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 17 } } }, "range": [ 88, 98 ], "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 17 } } } ], "source": { "type": "Literal", "value": "../src/Dispersion/Atmosphere", "raw": "'../src/Dispersion/Atmosphere'", "range": [ 104, 134 ], "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 8, "column": 53 } } }, "range": [ 81, 135 ], "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 54 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Source", "range": [ 143, 149 ], "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "column": 13 } } }, "range": [ 143, 149 ], "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 9, "column": 13 } } }, { "type": "ImportSpecifier", "local": { "type": "Identifier", "name": "SourceType", "range": [ 157, 167 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 14 } } }, "imported": { "type": "Identifier", "name": "SourceType", "range": [ 157, 167 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 14 } } }, "range": [ 157, 167 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 14 } } } ], "source": { "type": "Literal", "value": "../src/Dispersion/Source", "raw": "'../src/Dispersion/Source'", "range": [ 175, 201 ], "loc": { "start": { "line": 11, "column": 7 }, "end": { "line": 11, "column": 33 } } }, "range": [ 136, 202 ], "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 11, "column": 34 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "GaussianPlume", "range": [ 210, 223 ], "loc": { "start": { "line": 12, "column": 7 }, "end": { "line": 12, "column": 20 } } }, "range": [ 210, 223 ], "loc": { "start": { "line": 12, "column": 7 }, "end": { "line": 12, "column": 20 } } } ], "source": { "type": "Literal", "value": "../src/Dispersion/GaussianPlume", "raw": "'../src/Dispersion/GaussianPlume'", "range": [ 229, 262 ], "loc": { "start": { "line": 12, "column": 26 }, "end": { "line": 12, "column": 59 } } }, "range": [ 203, 263 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 60 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai", "range": [ 265, 269 ], "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 4 } } }, "property": { "type": "Identifier", "name": "should", "range": [ 270, 276 ], "loc": { "start": { "line": 14, "column": 5 }, "end": { "line": 14, "column": 11 } } }, "range": [ 265, 276 ], "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 11 } } }, "arguments": [], "range": [ 265, 278 ], "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 13 } } }, "range": [ 265, 279 ], "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 14 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 281, 289 ], "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "GaussianPlume", "raw": "'GaussianPlume'", "range": [ 290, 305 ], "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 24 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "plume", "range": [ 328, 333 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 13 } } }, "init": null, "range": [ 328, 333 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 13 } } } ], "kind": "let", "range": [ 324, 334 ], "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 14 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 344, 346 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should import correctly", "raw": "'should import correctly'", "range": [ 347, 372 ], "loc": { "start": { "line": 19, "column": 7 }, "end": { "line": 19, "column": 32 } } }, { "type": "ArrowFunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "atm", "range": [ 394, 397 ], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 15 } } }, "init": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Atmosphere", "range": [ 404, 414 ], "loc": { "start": { "line": 20, "column": 22 }, "end": { "line": 20, "column": 32 } } }, "arguments": [ { "type": "Literal", "value": 10, "raw": "10", "range": [ 415, 417 ], "loc": { "start": { "line": 20, "column": 33 }, "end": { "line": 20, "column": 35 } } }, { "type": "Literal", "value": 1, "raw": "1", "range": [ 419, 420 ], "loc": { "start": { "line": 20, "column": 37 }, "end": { "line": 20, "column": 38 } } }, { "type": "Literal", "value": 65, "raw": "65", "range": [ 422, 424 ], "loc": { "start": { "line": 20, "column": 40 }, "end": { "line": 20, "column": 42 } } }, { "type": "Literal", "value": 300, "raw": "300", "range": [ 426, 429 ], "loc": { "start": { "line": 20, "column": 44 }, "end": { "line": 20, "column": 47 } } } ], "range": [ 400, 430 ], "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 48 } } }, "range": [ 394, 430 ], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 48 } } } ], "kind": "let", "range": [ 390, 431 ], "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 49 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "source", "range": [ 444, 450 ], "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 18 } } }, "init": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "Source", "range": [ 457, 463 ], "loc": { "start": { "line": 21, "column": 25 }, "end": { "line": 21, "column": 31 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "SourceType", "range": [ 464, 474 ], "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 42 } } }, "property": { "type": "Identifier", "name": "POINT", "range": [ 475, 480 ], "loc": { "start": { "line": 21, "column": 43 }, "end": { "line": 21, "column": 48 } } }, "range": [ 464, 480 ], "loc": { "start": { "line": 21, "column": 32 }, "end": { "line": 21, "column": 48 } } }, { "type": "Literal", "value": 2, "raw": "2", "range": [ 482, 483 ], "loc": { "start": { "line": 21, "column": 50 }, "end": { "line": 21, "column": 51 } } }, { "type": "Literal", "value": 150, "raw": "150", "range": [ 485, 488 ], "loc": { "start": { "line": 21, "column": 53 }, "end": { "line": 21, "column": 56 } } }, { "type": "Literal", "value": 5, "raw": "5", "range": [ 490, 491 ], "loc": { "start": { "line": 21, "column": 58 }, "end": { "line": 21, "column": 59 } } }, { "type": "Literal", "value": 400, "raw": "400", "range": [ 493, 496 ], "loc": { "start": { "line": 21, "column": 61 }, "end": { "line": 21, "column": 64 } } }, { "type": "Literal", "value": 4, "raw": "4", "range": [ 498, 499 ], "loc": { "start": { "line": 21, "column": 66 }, "end": { "line": 21, "column": 67 } } } ], "range": [ 453, 500 ], "loc": { "start": { "line": 21, "column": 21 }, "end": { "line": 21, "column": 68 } } }, "range": [ 444, 500 ], "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 68 } } } ], "kind": "let", "range": [ 440, 501 ], "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 69 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "plume", "range": [ 510, 515 ], "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 13 } } }, "right": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "GaussianPlume", "range": [ 522, 535 ], "loc": { "start": { "line": 22, "column": 20 }, "end": { "line": 22, "column": 33 } } }, "arguments": [ { "type": "Identifier", "name": "atm", "range": [ 536, 539 ], "loc": { "start": { "line": 22, "column": 34 }, "end": { "line": 22, "column": 37 } } }, { "type": "Identifier", "name": "source", "range": [ 541, 547 ], "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 45 } } } ], "range": [ 518, 548 ], "loc": { "start": { "line": 22, "column": 16 }, "end": { "line": 22, "column": 46 } } }, "range": [ 510, 548 ], "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 46 } } }, "range": [ 510, 549 ], "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 47 } } } ], "range": [ 380, 556 ], "loc": { "start": { "line": 19, "column": 40 }, "end": { "line": 23, "column": 5 } } }, "generator": false, "expression": false, "range": [ 374, 556 ], "loc": { "start": { "line": 19, "column": 34 }, "end": { "line": 23, "column": 5 } } } ], "range": [ 344, 557 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 23, "column": 6 } }, "_esdocTestId": 33, "_esdocTestName": "it33" }, "range": [ 344, 558 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 23, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 568, 570 ], "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should have 0 stdY and stdZ at source", "raw": "'should have 0 stdY and stdZ at source'", "range": [ 571, 610 ], "loc": { "start": { "line": 25, "column": 7 }, "end": { "line": 25, "column": 46 } } }, { "type": "ArrowFunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "plume", "range": [ 628, 633 ], "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 13 } } }, "property": { "type": "Identifier", "name": "getStdY", "range": [ 634, 641 ], "loc": { "start": { "line": 26, "column": 14 }, "end": { "line": 26, "column": 21 } } }, "range": [ 628, 641 ], "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 21 } } }, "arguments": [ { "type": "Literal", "value": 0, "raw": "0", "range": [ 642, 643 ], "loc": { "start": { "line": 26, "column": 22 }, "end": { "line": 26, "column": 23 } } } ], "range": [ 628, 644 ], "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 24 } } }, "property": { "type": "Identifier", "name": "should", "range": [ 645, 651 ], "loc": { "start": { "line": 26, "column": 25 }, "end": { "line": 26, "column": 31 } } }, "range": [ 628, 651 ],