Skip to content

Commit

Permalink
Tweak docs for assertInvitesAlike
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn committed Mar 27, 2024
1 parent cb80a9e commit 8229dac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/invite-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,11 @@ function setup() {
}

/**
* Assert that invites are alike, allowing for some wiggle room around
* "received at" timestamps.
* Assert that invites are alike, with two special cases for "received at"
* timestamps:
*
* 1. They are are ignored during equality comparison
* 2. If present, the timestamps must be within the last 30 seconds
*
* @param {import('brittle').TestInstance} t
* @param {unknown} actual
Expand Down

0 comments on commit 8229dac

Please sign in to comment.