Skip to content

Suggested function: TestAsync #7

@theclapp

Description

@theclapp

This utility function allows you to test asynchronous functions (like xhr) more seamlessly:

func TestAsync(s string, f func(QUnitAssert)) {
    Test(s, func(qa QUnitAssert) {
        done := qa.Async()
        go func() {
            defer done()
            f(qa)
        }()
    })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions