All files / test-utils function-declaration.example.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 441x                                                                                 1x    
let functionDeclaration = {
  "type": "FunctionDeclaration",
  "id": {
    "type": "Identifier",
    "name": "Bla"
  },
  "params": [],
  "body": {
    "type": "BlockStatement",
    "body": [
      {
        "type": "ExpressionStatement",
        "expression": {
          "type": "CallExpression",
          "callee": {
            "type": "MemberExpression",
            "computed": false,
            "object": {
              "type": "Identifier",
              "name": "console"
            },
            "property": {
              "type": "Identifier",
              "name": "log"
            }
          },
          "arguments": [
            {
              "type": "Literal",
              "value": 1,
              "raw": "1"
            }
          ]
        }
      }
    ]
  },
  "generator": false,
  "expression": false,
  "async": false
}
module.exports = {
  functionDeclaration
}