Skip to content

ng2-translate problem in unit test Jasmine #471

@AhmedHadjTaieb

Description

@AhmedHadjTaieb

Reproduction of the problem
I am using karma with Jasmine for unit testing my component of Angular 2 but when I open karma server in testing and open pages tested ng2-translate don't charging attributes references in json.
I find this problem just in unit test but when I start my project in dev mode all attributes have good charging from json.

My code in the pictures :
capture d ecran 2017-03-18 a 17 15 18

My environment:

  • ng2-translate version: 5.0.0

  • Angular version: 2.4.8

  • Angular/cli version: 1.0.0-rc.0

  • karma version: 1.5.0

  • jasmine version: 2.5.38

  • Browser: Chrome

Without Testing :
capture d ecran 2017-03-18 a 17 21 18
With Testing in Karma :
capture d ecran 2017-03-18 a 17 19 45

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions