-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factory.define is not working! #36
Comments
Odd, it's working now... I ignored the error, and just continued developing. After a while I came back and now it seems to be working. I have no idea what I did to cause the issue in the first place, nor what I did to fix it 😅 I guess issue resolved |
Actually the issue came back in a different test file. I'll try to create a repro soon if I get some free time! |
@dburles Ah ok, I've discovered that to get if (Meteor.isServer) {
describe('Workspaces Methods', function () {
before(() => {
Factory.define('workspace', CollectionWorkSpaces, {
owner: () => 'ABC',
participant_ids: () => ['123'],
invitee_emails: () => []
});
})
beforeEach(function () {
resetDatabase();
});
it('updates invitee email list', function () {
const document1 = Factory.create('workspace');
console.log(document1);
})
});
} Then the output is
I'm not sure if |
Can you recreate the bug in a standalone application and link it here? We still don't know the root cause of the issue. |
Meteor version 2.5
dburles:factory version 1.1.0
The text was updated successfully, but these errors were encountered: