<commit_before>var fs = require('fs');
var templater = require('../');
var utils = require('./utils');

describe('An array of image positions, dimensions, and names', function () {
  utils.setupImages();

  describe('processed by `spritesheet-templates` into LESS with `variableNameTransforms`', function () {
    before(function () {
      this.options = {
        format: 'less',
        formatOpts: {
          variableNameTransforms: ['underscored', 'toUpperCase']
        }
      };
      this.filename = 'less-transform.less';
    });
    utils.runTemplater();

    utils.assertMatchesAsExpected();
  });
});

// DEV: Legacy test
describe('An array of image positions, dimensions, and names', function () {
  utils.setupImages();

  describe('processed by `spritesheet-templates` via custom template with no `variableNameTransforms`', function () {
    before(function () {
      var customTemplate = fs.readFileSync(__dirname + '/test_files/transform_custom.template.mustache', 'utf8');
      templater.addMustacheTemplate('transform_custom', customTemplate);

      this.options = {
        format: 'transform_custom'
      };
      this.filename = 'transform-custom.less';
    });
    utils.runTemplater();

    utils.assertMatchesAsExpected();
  });
});<commit_msg>Missed a test. Moved it over successfully<commit_after>var fs = require('fs');
var templater = require('../');
var configUtils = require('./utils/config');
var testUtils = require('./utils/test');

describe('An array of image positions, dimensions, and names', function () {
  testUtils.setInfo(configUtils.multipleItems);

  describe('processed by `spritesheet-templates` into LESS with `variableNameTransforms`', function () {
    testUtils.runTemplater({
      format: 'less',
      formatOpts: {
        variableNameTransforms: ['underscored', 'toUpperCase']
      }
    });

    testUtils.assertOutputMatches(__dirname + '/expected_files/less-transform.less');
  });
});

// DEV: Legacy test
describe('An array of image positions, dimensions, and names', function () {
  testUtils.setInfo(configUtils.multipleItems);

  describe('processed by `spritesheet-templates` via custom template with no `variableNameTransforms`', function () {
    before(function addCustomTemplate () {
      var customTemplate = fs.readFileSync(__dirname + '/test_files/transform_custom.template.mustache', 'utf8');
      templater.addMustacheTemplate('transform_custom', customTemplate);
    });
    testUtils.runTemplater({
      format: 'transform_custom'
    });

    testUtils.assertOutputMatches(__dirname + '/expected_files/transform-custom.less');
  });
});
{'fraction_non_alphanumeric': 0.14111365369946605, 'fraction_numerical': 0.0007627765064836003, 'mean_word_length': 4.0442307692307695, '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': '2935896', 'n_tokens_mistral': 738, 'n_tokens_neox': 721, 'n_words': 159}