BlinkUX / sequelize-mock

A simple mock interface specifically for testing code relying on Sequelize models
https://sequelize-mock.readthedocs.io
MIT License
139 stars 73 forks source link

with mock model tableAttributes undefined #98

Open GopalPatidar54 opened 1 year ago

GopalPatidar54 commented 1 year ago

when I try to get tableAttributes using mock model it's undefined

var DBConnectionMock = new SequelizeMock();
UserMock = DBConnectionMock.define('users', {
        'email': 'email@example.com',
        'username': 'blink',
        'picture': 'user-picture.jpg',
    }, {
        instanceMethods: {
            myTestFunc: function () {
                return 'Test User';
            },
        },
    });

UserMock.tableAttributes undefined, I just want to same functionality as sequelize