<commit_before>describe('#179 inherit-select-classes inside ng-if', function () {
  
  it('passes classes from the select tag to the chosen container inside ng-if', function () {
    var element;
    var customClass = 'customclass';
    var chosenContainer;

    $scope.test = true;

    var select = function(inheritSelectClasses, customClass) {
      return '<main><div ng-if="test">{{test}}<select chosen inherit-select-classes="' + inheritSelectClasses + '" class="' + customClass + '" ng-model="currentLanguage"><option></option></select></div></main>';
    };

    //inherit-select-classes = true
    element = $compile(select(true, customClass))($scope);
    $scope.$digest();
    chosenContainer = element.find('.localytics-directive').next();
    console.log('chosenContainer', element);
    expect(chosenContainer.hasClass(customClass)).toBe(true);
  });

});<commit_msg>test(ng-if): Wrapped  to run tests<commit_after>describe('#179 inherit-select-classes inside ng-if', function () {
  
  it('passes classes from the select tag to the chosen container inside ng-if', function () {
    var element;
    var customClass = 'customclass';
    var chosenContainer;

    $scope.test = true;

    var select = function(inheritSelectClasses, customClass) {
      return '<main><div ng-if="test">{{test}}<select chosen inherit-select-classes="' + inheritSelectClasses + '" class="' + customClass + '" ng-model="currentLanguage"><option></option></select></div></main>';
    };

    //inherit-select-classes = true
    element = $compile(select(true, customClass))($scope);
    $scope.$digest();
    chosenContainer = element.find('.localytics-directive').next();
    console.log('chosenContainer', element);
    $timeout(function() {
        expect(chosenContainer.hasClass(customClass)).toBe(true);
    });
  });
});
{'fraction_non_alphanumeric': 0.16703296703296702, 'fraction_numerical': 0.0032967032967032967, 'mean_word_length': 4.340175953079179, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4262320', 'n_tokens_mistral': 518, 'n_tokens_neox': 501, 'n_words': 107}