fedilove-ui/tests/serverActions.js

9 lines
278 B
JavaScript
Raw Normal View History

2018-02-25 05:27:32 +00:00
import { favoriteStatus } from '../routes/_api/favorite'
import fetch from 'node-fetch'
import { users } from './users'
2018-03-06 07:56:48 +00:00
global.fetch = fetch
2018-02-25 05:27:32 +00:00
export async function favoriteStatusAsAdmin (statusId) {
return favoriteStatus('localhost:3000', users.admin.accessToken, statusId)
2018-02-25 05:27:32 +00:00
}