MCPcopy Create free account
hub / github.com/angular/angular / assertStyle

Function assertStyle

packages/core/test/acceptance/styling_spec.ts:4051–4053  ·  view source on GitHub ↗
(element: HTMLElement, prop: string, value: any)

Source from the content-addressed store, hash-verified

4049});
4050
4051function assertStyle(element: HTMLElement, prop: string, value: any) {
4052 expect((element.style as any)[prop]).toEqual(value);
4053}
4054
4055function expectStyle(element: HTMLElement) {
4056 return expect(getElementStyles(element));

Callers 1

styling_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected