Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
/ boxrec-mocks Public archive

a repo for BoxRec mocks that can be used for testing/development

Notifications You must be signed in to change notification settings

boxing/boxrec-mocks

Repository files navigation

BoxRec Mocks

Makes request to BoxRec and saves the pages as HTML files. To be used for testing purposes.

❌ Deprecated/Archived ❌

This repository has been deprecated and stopped used in favour of using what's live to the public.

Installation

yarn add boxrec-mocks -D

or

npm install boxrec-mocks -D

Generating the mocks

Set environment variables

export BOXREC_USERNAME=
export BOXREC_PASSWORD=

and then run

yarn start

Usage (importing into other projects for testing purposes)

npm link this project to your project

then in your project import it

// import all
import * as BoxrecMocks from "boxrec-mocks";

or

// import one mock
import {mockMiddleweightWBCBelt} from "boxrec-mocks";

or

// import all
const boxrecMocks = require("boxrec-mocks");

Note

Not affiliated with the website BoxRec

About

a repo for BoxRec mocks that can be used for testing/development

Resources

Stars

Watchers

Forks

Packages

No packages published