Skip to content

to-do: investigate the viability of formatter option for assertEquals() #4891

Closed

Description

@iuioiua

We need to decide whether this option is to be kept before achieving stabilization. See documentation.

One clear point against it is that it's a fourth argument for assertEquals(), which goes against the Deno Style Guide of having two arguments and a third option argument, max (see https://docs.deno.com/runtime/manual/references/contributing/style_guide#exported-functions-max-2-args-put-the-rest-into-an-options-object). If we are to keep it, we should merge msg and formatter into a third options argument.

Activity

  1. kt3k commented on May 30, 2024

    @kt3k
    Contributor

    Looks like introduced in #3563 , but I don't remember well why this was needed.

    I think we should remove that option. We didn't get any feedback about this option. I think nobody uses it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions