Skip to content

Latest commit

 

History

History

javascript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

@trailervote/fixtures

Build Status npm version

Installation

Using your favourite package manager:

yarn add @trailer_vote/fixtures

Usage

import fixturePath from '@trailer_vote/fixtures'
import fs from 'fs'
const errorsJson = JSON.parse(fs.readFileSync(fixturePath('application/vnd.trailervote.errors.v1+json')))
// => { "errors" => [...] }

Contributing

Bug reports and pull requests are welcome on GitHub at TrailerVote/trailervote-fixtures.