I have a component that uses the app-localize-behavior, and works fine but when I run the tests I have errors.
This component calls to the localize function in order to set a property. But the tests throws an error if I use a JSON file instead of the resources property:
Description
I have a component that uses the
app-localize-behavior
, and works fine but when I run the tests I have errors.This component calls to the
localize
function in order to set a property. But the tests throws an error if I use a JSON file instead of the resources property:Steps to reproduce
To reproduce the error, you can use the tests inside of the app-localize-behavior:
The component using a JSON file
The component using local resources
The test
Using the JSON file
Using the local resources property
Why the test fails if I use a JSON file and I call the
localize
function?