UNPKG

dirtybomb

Version:
1,230 lines (1,229 loc) 158 kB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 41, 53 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 12 } } }, "range": [ 41, 54 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 13 } }, "leadingComments": [ { "type": "Block", "value": "*\n * Created by austin on 6/15/16.\n ", "range": [ 0, 40 ], "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": 5, "column": 7 }, "end": { "line": 5, "column": 11 } } }, "range": [ 62, 66 ], "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 11 } } } ], "source": { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 72, 78 ], "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 23 } } }, "range": [ 55, 79 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 24 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "db", "range": [ 87, 89 ], "loc": { "start": { "line": 7, "column": 6 }, "end": { "line": 7, "column": 8 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 92, 99 ], "loc": { "start": { "line": 7, "column": 11 }, "end": { "line": 7, "column": 18 } } }, "arguments": [ { "type": "Literal", "value": "../dist/Dirtybomb", "raw": "'../dist/Dirtybomb'", "range": [ 100, 119 ], "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 38 } } } ], "range": [ 92, 120 ], "loc": { "start": { "line": 7, "column": 11 }, "end": { "line": 7, "column": 39 } } }, "range": [ 87, 120 ], "loc": { "start": { "line": 7, "column": 6 }, "end": { "line": 7, "column": 39 } } } ], "kind": "const", "range": [ 81, 121 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 40 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai", "range": [ 124, 128 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 4 } } }, "property": { "type": "Identifier", "name": "should", "range": [ 129, 135 ], "loc": { "start": { "line": 10, "column": 5 }, "end": { "line": 10, "column": 11 } } }, "range": [ 124, 135 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 11 } } }, "arguments": [], "range": [ 124, 137 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 13 } } }, "range": [ 124, 138 ], "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 14 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 140, 148 ], "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "DirtyBomb", "raw": "'DirtyBomb'", "range": [ 149, 160 ], "loc": { "start": { "line": 12, "column": 9 }, "end": { "line": 12, "column": 20 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "bomb", "range": [ 183, 187 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "init": null, "range": [ 183, 187 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } } ], "kind": "let", "range": [ 179, 188 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 13 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 193, 201 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 12 } } }, "arguments": [ { "type": "Literal", "value": "Imports", "raw": "'Imports'", "range": [ 202, 211 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 22 } } }, { "type": "ArrowFunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 229, 231 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 10 } } }, "arguments": [ { "type": "Literal", "value": "should import Atmosphere", "raw": "'should import Atmosphere'", "range": [ 232, 258 ], "loc": { "start": { "line": 15, "column": 11 }, "end": { "line": 15, "column": 37 } } }, { "type": "ArrowFunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "atm", "range": [ 284, 287 ], "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 19 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "db", "range": [ 294, 296 ], "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 28 } } }, "property": { "type": "Identifier", "name": "Dispersion", "range": [ 297, 307 ], "loc": { "start": { "line": 16, "column": 29 }, "end": { "line": 16, "column": 39 } } }, "range": [ 294, 307 ], "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 39 } } }, "property": { "type": "Identifier", "name": "Atmosphere", "range": [ 308, 318 ], "loc": { "start": { "line": 16, "column": 40 }, "end": { "line": 16, "column": 50 } } }, "range": [ 294, 318 ], "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 50 } } }, "arguments": [ { "type": "Literal", "value": 10, "raw": "10", "range": [ 319, 321 ], "loc": { "start": { "line": 16, "column": 51 }, "end": { "line": 16, "column": 53 } } }, { "type": "Literal", "value": 1, "raw": "1", "range": [ 323, 324 ], "loc": { "start": { "line": 16, "column": 55 }, "end": { "line": 16, "column": 56 } } }, { "type": "Literal", "value": 65, "raw": "65", "range": [ 326, 328 ], "loc": { "start": { "line": 16, "column": 58 }, "end": { "line": 16, "column": 60 } } }, { "type": "Literal", "value": 300, "raw": "300", "range": [ 330, 333 ], "loc": { "start": { "line": 16, "column": 62 }, "end": { "line": 16, "column": 65 } } } ], "range": [ 290, 334 ], "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 16, "column": 66 } } }, "range": [ 284, 334 ], "loc": { "start": { "line": 16, "column": 16 }, "end": { "line": 16, "column": 66 } } } ], "kind": "let", "range": [ 280, 335 ], "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 67 } } } ], "range": [ 266, 345 ], "loc": { "start": { "line": 15, "column": 45 }, "end": { "line": 17, "column": 9 } } }, "generator": false, "expression": false, "range": [ 260, 345 ], "loc": { "start": { "line": 15, "column": 39 }, "end": { "line": 17, "column": 9 } } } ], "range": [ 229, 346 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 17, "column": 10 } }, "_esdocTestId": 18, "_esdocTestName": "it18" }, "range": [ 229, 347 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 17, "column": 11 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 365, 367 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 10 } } }, "arguments": [ { "type": "Literal", "value": "should import NuclearMaterial", "raw": "'should import NuclearMaterial'", "range": [ 368, 399 ], "loc": { "start": { "line": 19, "column": 11 }, "end": { "line": 19, "column": 42 } } }, { "type": "ArrowFunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "nucMat", "range": [ 425, 431 ], "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 22 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "db", "range": [ 438, 440 ], "loc": { "start": { "line": 20, "column": 29 }, "end": { "line": 20, "column": 31 } } }, "property": { "type": "Identifier", "name": "NuclearMaterial", "range": [ 441, 456 ], "loc": { "start": { "line": 20, "column": 32 }, "end": { "line": 20, "column": 47 } } }, "range": [ 438, 456 ], "loc": { "start": { "line": 20, "column": 29 }, "end": { "line": 20, "column": 47 } } }, "arguments": [ { "type": "Literal", "value": 2767540000, "raw": "2767540000", "range": [ 457, 467 ], "loc": { "start": { "line": 20, "column": 48 }, "end": { "line": 20, "column": 58 } } }, { "type": "Literal", "value": 238, "raw": "238", "range": [ 469, 472 ], "loc": { "start": { "line": 20, "column": 60 }, "end": { "line": 20, "column": 63 } } }, { "type": "Literal", "value": 100, "raw": "100", "range": [ 474, 477 ], "loc": { "start": { "line": 20, "column": 65 }, "end": { "line": 20, "column": 68 } } } ], "range": [ 434, 478 ], "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 69 } } }, "range": [ 425, 478 ], "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 69 } } } ], "kind": "let", "range": [ 421, 479 ], "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 70 } } } ], "range": [ 407, 489 ], "loc": { "start": { "line": 19, "column": 50 }, "end": { "line": 21, "column": 9 } } }, "generator": false, "expression": false, "range": [ 401, 489 ], "loc": { "start": { "line": 19, "column": 44 }, "end": { "line": 21, "column": 9 } } } ], "range": [ 365, 490 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 21, "column": 10 } }, "_esdocTestId": 19, "_esdocTestName": "it19" }, "range": [ 365, 491 ], "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 21, "column": 11 } } } ], "range": [ 219, 497 ], "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 22, "column": 5 } } }, "generator": false, "expression": false, "range": [ 213, 497 ], "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 22, "column": 5 } } } ], "range": [ 193, 498 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 22, "column": 6 } }, "_esdocTestId": 17, "_esdocTestName": "describe17" }, "range": [ 193, 499 ], "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 22, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 505, 513 ], "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 12 } } },