Skip to content

Commit

Permalink
Merge pull request #535 from hannu/linebreak-test
Browse files Browse the repository at this point in the history
Add tests for windows linebreak support, PR #530
  • Loading branch information
junaidrsd committed Mar 30, 2015
2 parents 60a2e3b + 7a27abd commit 0d273b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/unit/modules/kss-additional-params.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ describe('Parsing KSS additional params', function() {
expect(params).eql(result);
});

it('should parse windows linebreaks correctly', function() {
// jscs:disable
/*jshint -W109 */
var str = "/*\r\n// sg-param:\r\n// Value\r\n*/\r\n",
str2 = "/*\r// sg-param:\r// Value\r*/\r",
result = { 'sg-param': ' Value' };
// jscs:enable
expect(kssAdditionalParams.get(str)).eql(result);
expect(kssAdditionalParams.get(str2)).eql(result);
});

it('Should parse from multiline-commented block', function() {
var str = '' +
'/*\n' +
Expand Down

0 comments on commit 0d273b1

Please sign in to comment.