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

Fall back to name in resolve #51

Merged
merged 2 commits into from
Oct 23, 2019
Merged

Fall back to name in resolve #51

merged 2 commits into from
Oct 23, 2019

Conversation

mydea
Copy link
Contributor

@mydea mydea commented Apr 1, 2019

Currently, when using assetMap.resolve() with a file that does not exist in the map, it returns "undefined" (the string, not the type). This is weird and hard to handle.

This PR ensures that if something is not found in the asset map, it just returns the name.
It also adds some tests for the different cases & resolve.

@RuslanZavacky RuslanZavacky merged commit a041307 into adopted-ember-addons:master Oct 23, 2019
@RuslanZavacky
Copy link
Contributor

Thank you!

@Turbo87 Turbo87 added the bug label Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants