Repository URL to install this package:
|
Version:
5.0.4 ▾
|
import { OneRequestStore } from '../typings'
export function validateRequestStore(store: OneRequestStore) {
if (!store.has('url')) {
throw new Error('missing url, use request.setUrl(urlForstoreEndpoint)')
}
if (!store.has('data')) {
throw new Error('missing fixture data, use request.setData(fixtureData)')
}
}