pinafore/tests/serverActions.js

9 lines
278 B
JavaScript

import { favoriteStatus } from '../routes/_api/favorite'
import fetch from 'node-fetch'
import { users } from './users'
global.fetch = fetch
export async function favoriteStatusAsAdmin (statusId) {
return favoriteStatus('localhost:3000', users.admin.accessToken, statusId)
}