Meteor 1.2.1 + chimp
// tests/cucumber/step_definitions/steps.js
(function() {
modules.export = function() {
this.Given(/^I am an unauthenticated user$/, function () {
server.call("fixtures/logout");
});
}
})();
// packages/fixtures/fixtures.js
Meteor.methods({
'fixtures/logout': function() {
Meteor.logout();
}
});
// packages/fixtures.package.js
Package.describe({
name: 'awesome:fixtures',
version: '0.0.1',
summary: '',
debugOnly: true
});
Package.onUse(function(api) {
api.versionsFrom('1.2.1');
api.use('ecmascript');
api.addFiles('fixtures.js', 'server');
});
The tests error out with this:
[chimp] Detected an unhandledRejection.
[chimp][hooks] Reason:
[chimp][hooks] text.split is not a function
The fixtures package has been added to my project and I’ve tried variations of the call like this.server.call
, return server.call
, return this.server.call
.