test: fix some easy eslint errors

This commit is contained in:
Elliot DeNolf
2024-03-16 10:15:09 -04:00
parent 14eb66c87d
commit 7ddb68b70d
4 changed files with 15 additions and 15 deletions

View File

@@ -4,8 +4,8 @@ import type { Post } from './payload-types.js'
import { getPayload } from '../../packages/payload/src/index.js'
import { mapAsync } from '../../packages/payload/src/utilities/mapAsync.js'
import { NextRESTClient } from '../helpers/NextRESTClient.js'
import { initPayloadInt } from '../helpers/initPayloadInt.js'
import { idToString } from '../helpers/idToString.js'
import { initPayloadInt } from '../helpers/initPayloadInt.js'
import { startMemoryDB } from '../startMemoryDB.js'
import configPromise, { errorOnHookSlug, pointSlug, relationSlug, slug } from './config.js'
@@ -619,7 +619,7 @@ describe('collections-graphql', () => {
it('should sort find results by nearest distance', async () => {
// creating twice as many records as we are querying to get a random sample
await mapAsync([...Array(10)], async () => {
await mapAsync([...Array(10)], () => {
// setTimeout used to randomize the creation timestamp
setTimeout(async () => {
await payload.create({