Closed mtgraham closed 5 years ago
https://github.com/poteto/ember-cli-flash/blob/e86f47dc963c5711d590a4ba12ca4d7a284fde4a/addon/services/flash-messages.js#L119
This property throws an error in my app's tests Error: Assertion Failed: Cannot call get with 'flashMessageDefaults' on an undefined object.
Error: Assertion Failed: Cannot call get with 'flashMessageDefaults' on an undefined object.
It seems that resolving the config from the registry returns undefined in this version.
undefined
Seems to be a problem in unit tests only. But we need to add a needs for 'config:environment' seems to fix the issue. Opened PR #290
needs
Yes that works.
https://github.com/poteto/ember-cli-flash/blob/e86f47dc963c5711d590a4ba12ca4d7a284fde4a/addon/services/flash-messages.js#L119
This property throws an error in my app's tests
Error: Assertion Failed: Cannot call get with 'flashMessageDefaults' on an undefined object.
It seems that resolving the config from the registry returns
undefined
in this version.