I'm using cucumber and sublime text 3 to create some test cases but when I tried to create a snippet for them, the behavior was not as expected, when I call the snippet with tab button nothing happen. I had to figure out what happens and I found that the problem in the code is the $ in the step description.
My snippet:
<snippet>
<content><![CDATA[
'use strict';
module.exports = function() {
var Given = this.Given,
When = this.When,
Then = this.Then;
Given(/^description$/, function(cb) {
cb();
});
When(/^description$/, function(cb) {
cb();
});
Then(/^description$/, function(cb) {
cb();
});
};
]]></content>
<tabTrigger>step</tabTrigger>
<scope>source.js</scope>
<description>To create a step in cucumber</description>
</snippet>
Then when I remove the $ in the description of step the snippet working very fine, but I need this symbol in the step. what I do in this case?