Skip to content
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

codemod: run meteor/v3/call-async #17

Draft
wants to merge 1 commit into
base: 2.x.x
Choose a base branch
from

Conversation

mohab-sameh
Copy link

@@ -23,15 +23,15 @@ if (Meteor.isServer) {
});

it('can delete owned task', () => {
Meteor.call('removeTask', { taskId });
await Meteor.callAsync('removeTask', { taskId });

assert.equal(Tasks.find().count(), 0);
});

it("can't delete task if not authenticated", () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it("can't delete task if not authenticated", () => {
it("can't delete task if not authenticated", async () => {

Could the codemod add the missing async on the context of the function where the await is added?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#18, sorry for reverting back very late, I have updated the codemod accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants