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

feat: serve assets in unit tests #915

Merged
merged 1 commit into from
Nov 23, 2015

Conversation

jnizet
Copy link
Contributor

@jnizet jnizet commented Nov 21, 2015

When unit-testing a directive, and the template of the directive contains, for example

<img src="/assets/angular.png" />

a 404 warning is displayed in the karma console because the image isn't served by Karma.

This commit configures karma to also serve assets, to avoid that warning (and possible
other complications caused by the absence of assets).

When unit-testing a directive, and the template of the directive contains, for example

    <img src="/assets/angular.png" />

a 404 warning is displayed in the karma console because the image isn't served by Karma.

This commit configures karma to also serve assets, to avoid that warning (and possible
other complications caused by the absence of assets).
@Swiip
Copy link
Owner

Swiip commented Nov 23, 2015

I never faced this need and you fix seams legit.

👍 Thanks.

Swiip added a commit that referenced this pull request Nov 23, 2015
@Swiip Swiip merged commit 68a1662 into Swiip:master Nov 23, 2015
@zckrs zckrs mentioned this pull request Nov 23, 2015
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

Successfully merging this pull request may close these issues.

2 participants