Closed martinhbramwell closed 7 years ago
Thanks for letting me know about this issue! The correct code should be (as it looks like you noticed):
var SequelizeMock = require('sequelize-mock');
var dbMock = new SequelizeMock();
Looks like I accidentally had the extra ()
left over from a different version of that example code. I've fixed it and it should go out with our next release.
Hi @ktsashes , you need fix this problem in doc. :)
Your GitHub README getting started instructions state ...
Start by importing the library
Initialize the library as you would Sequelize
... but your ReadTheDocs instructions state ...
Make Fake DB Connection
Because Sequelize Mock is meant ... .... any actual connection data.
If I follow the second version's
require
, with its trailing function parenthesis, I get the error: