src/Concerns/HasDocumentAssertions.php
public function assertLinks(array $expected, bool $strict = true, string $message = ''): self
    {
        Assert::assertHash($this, $expected, '/links', $strict, $message);

        return $this;
    }
public function assertLinks(array $expected, bool $strict = true, string $message = ''): self
    {
        Assert::assertHash($this, $expected, '/links', $strict, $message);

        return $this;
    }
Assert that the top-level links match the expected values.

@param array $expected
@param bool $strict
@param string $message
@return $this