Skip to content

Commit

Permalink
[service] fix timestamp bug in observation test
Browse files Browse the repository at this point in the history
  • Loading branch information
restjohn committed Jan 5, 2024
1 parent 70eca32 commit 45102a4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1343,8 +1343,11 @@ describe('observation entities', function() {

it('updates attachments', function() {

const beforeLastModified = Date.now() - 1000 * 60 * 60
const beforeAttrs = makeObservationAttrs(mageEvent)
const beforeLastModified = Date.now() - 1000 * 60 * 35
const beforeAttrs = {
...makeObservationAttrs(mageEvent),
lastModified: new Date(beforeLastModified),
}
beforeAttrs.properties.forms = [
{
id: 'attachments',
Expand Down

0 comments on commit 45102a4

Please sign in to comment.