<commit_before>var chai = require('chai'),
  expect = chai.expect,
  sync = require('./../lib/sync'),
  projectSettings = {},
  configopts = {},
  commandopts = {};

describe('sync', function() {
  
  beforeEach(function(){
    commandopts = {
      immediates: false,
      isWindows: true,
      dryRun: false,
      ssh: false,
      transpose: false,
    };
    configopts = {
      'dirs': [
        {
          'source': '/c/Users/egardner/Documents/devspace/utilties/emad-py/',
          'target': '/c/Users/egardner/Documents/devspace/utilties/emad-target'
        }
      ]
    };
    projectSettings = {
      'exclude': ['.git', '*.py'],
      'include': ['smiley.gif']
    };
  });
  
  it('should export a sync module', function() {
    expect(typeof sync.sync).to.equal('function');
  });
  
  it('should call rsync with the -a flag set by default', function() {
    var results = sync.sync(configopts.dirs[0].source, configopts.dirs[0].target, commandopts, configopts, projectSettings);
    expect(results.args).to.include('-a');
  });
  
  it('should accommodate a non-recursive file transfer', function() {
    commandopts.immediates = true;
    
    var results = sync.sync(configopts.dirs[0].source, configopts.dirs[0].target, commandopts, configopts, projectSettings);
    expect(results.args).not.to.include('-a');
  });
  
  it('should merge the exclude properties in the sync directory with the project-level ones', function() {
    var results = sync.sync(configopts.dirs[0].source, configopts.dirs[0].target, commandopts, configopts, projectSettings);
    expect(results.exclude).to.include('*.py');
  });<commit_msg>version bump. updating unit tests<commit_after>var chai = require('chai'),
  expect = chai.expect,
  sync = require('./../lib/sync'),
  projectSettings = {},
  configopts = {},
  commandopts = {};

describe('sync', function() {
  
  beforeEach(function(){
    commandopts = {
      immediates: false,
      isWindows: true,
      dryRun: false,
      ssh: false,
      transpose: false,
    };
    configopts = {
      'dirs': [
        {
          'source': '/c/Users/egardner/Documents/devspace/utilties/emad-py/',
          'target': '/c/Users/egardner/Documents/devspace/utilties/emad-target'
        }
      ]
    };
    projectSettings = {
      'exclude': ['*.komodoproject', 'temp.txt'],
      'include': ['smiley.gif']
    };
  });
  
  it('should export a sync module', function() {
    expect(typeof sync.sync).to.equal('function');
  });
  
  it('should call rsync with the -a flag set by default', function() {
    var results = sync.sync(configopts.dirs[0].source, configopts.dirs[0].target, commandopts, configopts, projectSettings);
    expect(results.args).to.include('-a');
  });
  
  it('should accommodate a non-recursive file transfer', function() {
    commandopts.immediates = true;
    
    var results = sync.sync(configopts.dirs[0].source, configopts.dirs[0].target, commandopts, configopts, projectSettings);
    expect(results.args).not.to.include('-a');
  });
  
  it('should merge the exclude properties in the sync directory with the project-level ones', function() {
    var results = sync.sync(configopts.dirs[0].source, configopts.dirs[0].target, commandopts, configopts, projectSettings);
    expect(results.exclude).to.include('*.komodoproject');
    expect(results.exclude).to.include('temp.txt');
  });
{'fraction_non_alphanumeric': 0.16380839739798936, 'fraction_numerical': 0.0035481963335304554, 'mean_word_length': 3.192069392812887, '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': '4466704', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1060, 'n_words': 209}