Skip to content
This repository was archived by the owner on Nov 16, 2021. It is now read-only.

relative baseUrl path for unit tests #137

@michahell

Description

@michahell

Hi,

this is not a blocker but I would like to point to a different (relative) URL for Angular unit tests, so we don't see 404's in the spec output:

04 05 2020 13:33:42.878:WARN [web-server]: 404: /assets/icons/search.svg

I tried the following baseUrl:

InlineSVGModule.forRoot({
  baseUrl: '../../libs'
})

but the ../../ part seems to be removed:

04 05 2020 13:33:42.878:WARN [web-server]: 404: /libs/assets/icons/search.svg

This does not seem to explicitly happen in getAbsoluteUrl():

getAbsoluteUrl(url: string): string {

When I put a console log there to see what url and _baseUrl are, I do see:
'/assets/icons/search.svg' and '../../libs' consecutively.
So I know that the config override is applied, at least.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions