Skip to content

Modernise API for 1.0 #1

Description

@TheSpyder

List of changes (to be put in a changelog later):

  • Swap API from snake case to camel case
  • Restructure the bindings to be as zero-cost as possible (AKA remove currying that reduces binding code at the expense of massive runtime code bloat)
  • Add custom promise test handling that catches exceptions, this is a massive pain point of using mocha with these bindings (because the only Assert bindings are sync)
  • Move the Assert module to be a sub-module of the Mocha, Async and Promise modules instead of a peer
  • Add promise-based assert bindings (and possibly async too). This will discourage use of the exception-throwing Assert methods when all they do is cause tests to timeout.
  • Add tests for throwing exceptions in promise and async test code

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