<commit_before>var gulp = require('gulp'),
  chai = require('chai'),
  expect = chai.expect,
  fs = require('fs'),
  multiline = require('multiline'),
  kssSplitter = require('../lib/modules/kss-splitter');

describe('KSS splitter', function() {

  describe('Splitter module', function() {
    it('Split 2 blocks of singleline comments', function(){
      var str = multiline(function() {
        /*
// Comment1
// Comment1

// Comment2
// Comment2
        */
      }),
        result = [
        { type: 'comment', content: '// Comment1\n// Comment1' },
        { type: 'code', content: '\n\n' },
        { type: 'comment', content: '// Comment2\n// Comment2' }
      ],
        split = kssSplitter.pureSplitter(str);

      expect(split).eql(result);

    });
  });

  it('should parse single KSS block', function() {
    var str = multiline(function() {
      /*
// Comment
// Styleguide 1.0

.a { b: c }
      */
    }),
    result = [
      {
        'kss': '// Comment\n// Styleguide 1.0',
        'code': '\n\n.a { b: c }'
      }
    ],
    kssBlocks = kssSplitter.getBlocks(str);
    expect(kssBlocks).eql(result);<commit_msg>Detach tests fo singleline comment blocks<commit_after>var gulp = require('gulp'),
  chai = require('chai'),
  expect = chai.expect,
  fs = require('fs'),
  multiline = require('multiline'),
  kssSplitter = require('../lib/modules/kss-splitter');

describe('KSS splitter', function() {

  describe('Splitter module', function() {
    it('Split 2 blocks of singleline comments', function(){
      var str = multiline(function() {
        /*
// Comment1
// Comment1

// Comment2
// Comment2
        */
      }),
        result = [
        { type: 'comment', content: '// Comment1\n// Comment1' },
        { type: 'code', content: '\n\n' },
        { type: 'comment', content: '// Comment2\n// Comment2' }
      ],
        split = kssSplitter.pureSplitter(str);

      expect(split).eql(result);

    });
  });

  describe('Singleline comment declarations', function() {
    it('should parse single KSS block', function() {
      var str = multiline(function() {
        /*
// Comment
// Styleguide 1.0

.a { b: c }
        */
      }),
      result = [
        {
          'kss': '// Comment\n// Styleguide 1.0',
          'code': '\n\n.a { b: c }'
        }
      ],
      kssBlocks = kssSplitter.getBlocks(str);
      expect(kssBlocks).eql(result);
    });
{'fraction_non_alphanumeric': 0.18235048097030532, 'fraction_numerical': 0.010874111250522794, 'mean_word_length': 2.197860962566845, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4634272', 'n_tokens_mistral': 808, 'n_tokens_neox': 784, 'n_words': 164}