Skip to content

empty execution context in acceptance test #428

Description

@mjhea0

The execution context is coming back as an empty object in the test case:

➜  denali-my-api git:(master) denali test
cli v0.0.27 [local] | denali v0.0.46 [local]
✔ denali-my-api build complete (0.770s)
===> Running denali-my-api tests ...
ExecutionContext {}

  9 passed
  2 failed
  1 rejection

  linting › test/acceptance/index-test.js passes ESLint

  /Users/michael.herman/repos/github/denali-my-api/test/linting.js:29

  test/acceptance/index-test.js should pass ESLint

  6:3 - Unexpected console statement. (no-console)



  acceptance › index-test › GET / > should return a welcome message

  /Users/michael.herman/repos/github/denali-my-api/node_modules/source-map-support/source-map-support.js:453

  Promise returned by test never resolved



  Unhandled Rejection
  TypeError: Cannot read property 'toLowerCase' of undefined
Object._apply_rules (node_modules/inflection/lib/inflection.js:594:53)
Object.pluralize (node_modules/inflection/lib/inflection.js:670:24)
JSONAPISerializer.renderRecord (/Users/daw/oss/denali/denali/lib/render/json-api.ts:189:13)
JSONAPISerializer.renderPrimaryObject (/Users/daw/oss/denali/denali/lib/render/json-api.ts:107:42)
JSONAPISerializer.renderPrimary (/Users/daw/oss/denali/denali/lib/render/json-api.ts:93:18)
JSONAPISerializer.serialize (/Users/daw/oss/denali/denali/lib/render/json-api.ts:73:16)
JSONAPISerializer.render (/Users/daw/oss/denali/denali/lib/render/serializer.ts:91:23)
IndexAction.render (/Users/daw/oss/denali/denali/lib/runtime/action.ts:242:29)
IndexAction.respond (dist/app/actions/index.js:16:1)
IndexAction.run (/Users/daw/oss/denali/denali/lib/runtime/action.ts:279:31)

===> Tests failed 💥

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions