Skip to content

asserEquals false positive: Says two equal values are not equal #6929

@BlackAsLight

Description

@BlackAsLight

Describe the bug
assertEquals incorrectly says the example below isn't equal and fails to actually highlight any difference between them.

Image

Steps to Reproduce

import { assertEquals } from "@std/assert";

assertEquals(
  new File([new Uint8Array(10)], "blob", { type: "application/octet-stream" }),
  new File([new Uint8Array(10)], "blob", { type: "application/octet-stream" })
);

Expected behavior

It not say they're different.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions