<commit_before>var PrivacyOption = require('new_dashboard/dialogs/change_privacy/options_collection');
var cdbAdmin = require('cdb.admin');

describe('new_dashboard/dialogs/change_privacy/options_collection', function() {
  describe('.classNames', function() {
    beforeEach(function() {
      this.model = new PrivacyOption({});
    });

    describe('given both attributes are not set', function() {
      it('should return empty string', function() {
        expect(this.model.classNames()).toEqual('');
      });
    });

    describe('given at least one attr is set to true', function() {
      it('should return the states in a space-separated string', function() {
        this.model.set('disabled', true);
        expect(this.model.classNames()).toEqual('is-disabled');

        this.model.set('selected', true);<commit_msg>Fix privacy option model<commit_after>var PrivacyOption = require('new_dashboard/dialogs/change_privacy/option_model');
var cdbAdmin = require('cdb.admin');

describe('new_dashboard/dialogs/change_privacy/option_model', function() {
  describe('.classNames', function() {
    beforeEach(function() {
      this.model = new PrivacyOption({});
    });

    describe('given both attributes are not set', function() {
      it('should return empty string', function() {
        expect(this.model.classNames()).toEqual('');
      });
    });

    describe('given at least one attr is set to true', function() {
      it('should return the states in a space-separated string', function() {
        this.model.set('disabled', true);
        expect(this.model.classNames()).toEqual('is-disabled');

        this.model.set('selected', true);
{'fraction_non_alphanumeric': 0.15255255255255254, 'fraction_numerical': 0.0, 'mean_word_length': 3.9583333333333335, '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': '4445691', 'n_tokens_mistral': 458, 'n_tokens_neox': 451, 'n_words': 104}