Skip to content

Commit

Permalink
refactor(core): improve styling coverage (angular#49868)
Browse files Browse the repository at this point in the history
The test was waiting for angular#34202 to be merged.

PR Close angular#49868
  • Loading branch information
JeanMeche authored and thePunderWoman committed Apr 17, 2023
1 parent 8c0285b commit f3366c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/test/acceptance/styling_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ describe('styling', () => {

it('should perform interpolation bindings', () => {
@Component({
// TODO(misko): change `style-x` to `style` once #34202 lands
template: `<div class="static {{'dynamic'}}"
style.color="blu{{'e'}}"
style-x="width: {{'100'}}px"></div>`
style="width: {{'100'}}px"></div>`
})
class Cmp {
}
Expand All @@ -83,7 +82,7 @@ describe('styling', () => {

const div = fixture.nativeElement.querySelector('div');
expect(getSortedClassName(div)).toEqual('dynamic static');
expect(getSortedStyle(div)).toEqual('color: blue;');
expect(getSortedStyle(div)).toEqual('color: blue; width: 100px;');
});

it('should support hostBindings', () => {
Expand Down

0 comments on commit f3366c6

Please sign in to comment.