【发布时间】:2014-12-17 17:21:49
【问题描述】:
我做了这个测试:
describe('SignIn', function () {
it('should be able to login normal user', function (done) {
Meteor.loginWithPassword('example@gmail.com', '000000', function (err) {
expect(err).toBeUndefined();
done();
});
});
});
我收到以下错误:
Expected { error : 403, reason : 'User not found', details : undefined, message : 'User not found [403]', errorType : 'Meteor.Error' } to be undefined. While the user exists (can log in with the form)
但我可以使用流星应用程序的形式登录为“example@gmail.com”,以便用户存在。我的代码有问题吗?
【问题讨论】:
标签: meteor jasmine meteor-velocity