-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hello, Great work! The hook works perfectly when I do a sails lift on the console, but while running unit tests through mocha, it fails with a syntax error,
"before all" hook:
Uncaught /Users/salmanhasratkhan/Desktop/es6_trial/api/controllers/TestController.js:4
console.log(__.ifNot(s => s == 2, 2));
^^
Unexpected token =>
this is the way I lift sails in mocha
console.log('bootstrap before');
Sails.lift({
//configuration for testing purposes
hooks: {
// Load the hook
"babel": require('../../../'),
// Skip grunt
"grunt": false
},
log: {
level: "error"
}
});
Any ideas what is preventing it from working correctly? Thanks
Metadata
Metadata
Assignees
Labels
No labels