Skip to content

This is a minimal Repository to show that an input of a Angular Component is still an empty string in jasmine tests although a value was defined in beforeEach block

Notifications You must be signed in to change notification settings

riede/component-with-element-and-attribute-selector

Repository files navigation

This is a minial reproduction of an behaviour that only occurs in tests if a component has a selector consiting of an element and an attritute part (e.g. app-test[inputAttribute] where inputAttribute is an component's attribute). The Implementation can be found here

One jasmine test of the component TestComponent fails because the input will be set to an empty string allthough a value das set before.

Run ng test to start the tests or run ng serve -o to check the behaviour in a running Angular Application.

About

This is a minimal Repository to show that an input of a Angular Component is still an empty string in jasmine tests although a value was defined in beforeEach block

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published