Revert "fix meteor/meteor-tests.ts"

This reverts commit 5cbf18d2df.
This commit is contained in:
vvakame
2016-02-23 11:59:05 +09:00
parent f273c4b9ca
commit 2fdb6b7460
+5 -8
View File
@@ -131,15 +131,12 @@ Meteor.methods({
/**
* From Methods, Meteor.Error section
*/
if (Math.random() < 0.5) {
throw new Meteor.Error("logged-out",
"The user must be logged in to post a comment.");
}
throw new Meteor.Error("logged-out",
"The user must be logged in to post a comment.");
throw new Meteor.Error(403,
"The user must be logged in to post a comment.");
if (Math.random() < 0.5) {
throw new Meteor.Error(403,
"The user must be logged in to post a comment.");
}
Meteor.call("methodName", function (error: Meteor.Error) {
if (error.error === "logged-out") {