Pinafore-Web-Client-Frontend/tests/serverActions.js

10 lines
322 B
JavaScript
Raw Normal View History

2018-02-25 06:27:32 +01:00
import { favoriteStatus } from '../routes/_api/favorite'
import fetch from 'node-fetch'
global.fetch = fetch
const accessToken = 'a306d698185db24b12385a5432817551d7ac94bdcbe23233d4e5eff70f6408c4'
export async function favoriteStatusAsAdmin (statusId) {
return favoriteStatus('localhost:3000', accessToken, statusId)
}