Meteor has a fairly extensive API, and places various objects on the global scope of the browser's Javascript environment, such as Session, Template, Collection, and of course Meteor. Here is how to test methods on such objects using Nightwatch and the Selenium .execute() API.
exports.command = function(sessionVarName, expectedValue) {
var client = this;
this
.execute(function(data){