Skip to content

Commit

Permalink
add tests for kebab case, #36089
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored and egamma committed Oct 31, 2017
1 parent cb6d217 commit 0c46961
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,19 @@ suite('Snippet Variables Resolver', function () {
'ThisIsAFile',
'this-is-a-file.js'
);

// KEBAB CASE
assertVariableResolve2(
'${TM_FILENAME_BASE/([A-Z][a-z]+)([A-Z][a-z]+$)?/${1:/downcase}-${2:/downcase}/g}',
'capital-case',
'CapitalCase'
);

assertVariableResolve2(
'${TM_FILENAME_BASE/([A-Z][a-z]+)([A-Z][a-z]+$)?/${1:/downcase}-${2:/downcase}/g}',
'capital-case-more',
'CapitalCaseMore'
);
});

});

0 comments on commit 0c46961

Please sign in to comment.