Unable to test Meteor.loginWithPassword method using mocha


#1

describe(“validating user”,function(){
it(“should check whether the user exist”, function(){
Meteor.loginWithPassword(‘examaple@gmail.com’, ‘12345678’, (error,result) =>{
expect(result).to.be.undefined;
console.log(error,result);
});
});
});
});

any help?

thanks