Skip to content

Snapshot of style rule(s) #117

Open
@WickyNilliams

Description

@WickyNilliams

It would be nice if we could snapshot style rules, instead of explicitly asserting on them in tests.

e.g. instead of:

expect(component).toHaveStyleRule("transition", "height 50ms ease-out, opacity 50ms ease-out 50ms, transform 50ms ease-out 50ms;");

we could do something like (API up for discussion):

expect(component.getStyleRule("transition")).toMatchSnapshot();

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