chaijs / chai-factories

Factories over fixtures. Chai Assertion Library.
23 stars 2 forks source link

Update documenation for “Build from factory” #1

Closed mkempe closed 12 years ago

mkempe commented 12 years ago

Hi there,

The documentation says:

Build from factory

var user = chai.factory('person');
console.log(user);

But i have to use and looked into the source:

var user = chai.create('person');
console.log(user);

Is this correct? If so, i would update the documenation and README and send you a request.

PS: Thanks for Chai.js, its awesome.

vesln commented 12 years ago

Yeah, the docs are wrong. I'd love to merge a pull request that fixes this. Thank you!