<commit_before>'use strict';

var lint = require('./_lint');

//////////////////////////////
// SCSS syntax tests
//////////////////////////////
describe('no duplicate properties - scss', function () {
  var file = lint.file('no-duplicate-properties.scss');

  it('enforce', function (done) {
    lint.test(file, {
      'no-duplicate-properties': 1
    }, function (data) {
      lint.assert.equal(6, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background'
          ]
        }
      ]
    }, function (data) {
      lint.assert.equal(5, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background',
            'display'
          ]
        }
      ]
    }, function (data) {
      lint.assert.equal(4, data.warningCount);
      done();
    });
  });
});

//////////////////////////////
// Sass syntax tests
//////////////////////////////
describe('no duplicate properties - sass', function () {
  var file = lint.file('no-duplicate-properties.sass');

  it('enforce', function (done) {
    lint.test(file, {
      'no-duplicate-properties': 1
    }, function (data) {
      lint.assert.equal(6, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background'
          ]
        }
      ]
    }, function (data) {
      lint.assert.equal(5, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background',
            'display'
          ]<commit_msg>Update no-duplicate-properties test naming<commit_after>'use strict';

var lint = require('./_lint');

//////////////////////////////
// SCSS syntax tests
//////////////////////////////
describe('no duplicate properties - scss', function () {
  var file = lint.file('no-duplicate-properties.scss');

  it('enforce', function (done) {
    lint.test(file, {
      'no-duplicate-properties': 1
    }, function (data) {
      lint.assert.equal(6, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background'
          ]
        }
      ]
    }, function (data) {
      lint.assert.equal(5, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background, display]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background',
            'display'
          ]
        }
      ]
    }, function (data) {
      lint.assert.equal(4, data.warningCount);
      done();
    });
  });
});

//////////////////////////////
// Sass syntax tests
//////////////////////////////
describe('no duplicate properties - sass', function () {
  var file = lint.file('no-duplicate-properties.sass');

  it('enforce', function (done) {
    lint.test(file, {
      'no-duplicate-properties': 1
    }, function (data) {
      lint.assert.equal(6, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background'
          ]
        }
      ]
    }, function (data) {
      lint.assert.equal(5, data.warningCount);
      done();
    });
  });

  it('enforce - [exclude: background, display]', function (done) {
    lint.test(file, {
      'no-duplicate-properties': [
        1,
        {
          'exclude': [
            'background',
            'display'
          ]
{'fraction_non_alphanumeric': 0.2168966351972888, 'fraction_numerical': 0.00532558702493343, 'mean_word_length': 1.553770086526576, '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': '1674401', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1225, 'n_words': 217}