<commit_before>'use strict';

var should = require('should');
var React = require('react');
var Navbar = React.createFactory(require('../../components/Navbar'));

describe('Navbar()', function() {
  it('should render', function(done){
    var circle = Navbar();
    var str = React.renderToStaticMarkup(circle);
    should.exist(str);
    str.should.equal('<nav class="navbar-component"><div class="title"></div><div class="inner" style="max-height:0px;"></div><div class="navbar-button"><div class="bar"></div><div class="bar"></div><div class="bar"></div></div></nav>');
    done();
  });

  it('should render with title props', function(done){
    var circle = Navbar({
      title: 'navbar'
    });
    var str = React.renderToStaticMarkup(circle);
    should.exist(str);
    str.should.equal('<nav class="navbar-component" title="navbar"><div class="title">navbar</div><div class="inner" style="max-height:0px;"></div><div class="navbar-button"><div class="bar"></div><div class="bar"></div><div class="bar"></div></div></nav>');
    done();
  });

  it('should render with logo props', function(done){
    var circle = Navbar({
      logo: '/images/img.png'
    });
    var str = React.renderToStaticMarkup(circle);
    should.exist(str);
    str.should.equal('<nav class="navbar-component"><div class="title"><img class="logo" src="/images/img.png"></div><div class="inner" style="max-height:0px;"></div><div class="navbar-button"><div class="bar"></div><div class="bar"></div><div class="bar"></div></div></nav>');
    done();
  });

  it('should render with style props', function(done){
    var circle = Navbar({
      logo: '/images/img.png',<commit_msg>updated test to match new props for logo<commit_after>'use strict';

var should = require('should');
var React = require('react');
var Navbar = React.createFactory(require('../../components/Navbar'));

describe('Navbar()', function() {
  it('should render', function(done){
    var circle = Navbar();
    var str = React.renderToStaticMarkup(circle);
    should.exist(str);
    str.should.equal('<nav class="navbar-component"><div class="title"></div><div class="inner" style="max-height:0px;"></div><div class="navbar-button"><div class="bar"></div><div class="bar"></div><div class="bar"></div></div></nav>');
    done();
  });

  it('should render with title props', function(done){
    var circle = Navbar({
      title: 'navbar'
    });
    var str = React.renderToStaticMarkup(circle);
    should.exist(str);
    str.should.equal('<nav class="navbar-component" title="navbar"><div class="title">navbar</div><div class="inner" style="max-height:0px;"></div><div class="navbar-button"><div class="bar"></div><div class="bar"></div><div class="bar"></div></div></nav>');
    done();
  });

  it('should render with logo props', function(done){
    var circle = Navbar({
      logoSrc: '/images/img.png',
      logoLink: '/'
    });
    var str = React.renderToStaticMarkup(circle);
    should.exist(str);
    str.should.equal('<nav class="navbar-component"><div class="title"><a href="/"><img class="logo" src="/images/img.png"></a></div><div class="inner" style="max-height:0px;"></div><div class="navbar-button"><div class="bar"></div><div class="bar"></div><div class="bar"></div></div></nav>');
    done();
  });

  it('should render with style props', function(done){
    var circle = Navbar({
      logo: '/images/img.png',
{'fraction_non_alphanumeric': 0.22667059169855755, 'fraction_numerical': 0.001766264350897851, 'mean_word_length': 4.858620689655172, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '4979666', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1025, 'n_words': 202}