Skip to content

Recommended way to unit test returned html macro contents? #294

Closed
@craigmayhew

Description

@craigmayhew

Hello,

What is an appropriate way to unit test nested element macros?

e.g. if I have a function like so and I want to write a unit test for checking it returns some or all of the expected content:

fn draw_title(){
  div![h1!["some string"]]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededmissing functionalityNot quite a bug, but needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions