Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty execution context in acceptance test #428

Open
mjhea0 opened this issue Feb 17, 2018 · 2 comments
Open

empty execution context in acceptance test #428

mjhea0 opened this issue Feb 17, 2018 · 2 comments

Comments

@mjhea0
Copy link

mjhea0 commented Feb 17, 2018

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 💥
@davewasmer
Copy link
Collaborator

Could you paste your test code?

@mjhea0
Copy link
Author

mjhea0 commented Feb 20, 2018

It's from the base test. It happens when I run the tests right after starting a new project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants