Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

HelixSpec

HelixSpec is the class that gets returned by the createSpec() function.

Usage

const Dinosaur = createSpec({
  id: faker.datatype.number(),
  name: faker.name.firstName(),
  location: faker.address.country(),
});
// Returns a HelixSpec

Arguments

Argument Type Description
shape object Object containing key/value pairs to construct the fixture data.

Methods

HelixSpec contains a handful of methods: