Created
May 6, 2019 15:18
-
-
Save arichter83/00f57c297976a6dfb5ff4447e56b9798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cy.window().then((win) => { | |
return new Cypress.Promise((resolve, reject) => { | |
win.Meteor.call('create', | |
{ | |
title: 'Test' | |
}, | |
(err, res) => { | |
if(res) { | |
resolve(res) | |
} else { | |
reject(err) | |
} | |
} | |
) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment