<commit_before>import Avatar from "Avatar";

describe( "Avatar", () => {
	let component, container;

	beforeEach( () => {
		container = document.createElement( "div" );
	} );

	function render( props ) {
		ReactDOM.render( <Avatar {...props} />, container );
		component = container.children[ 0 ];
	}

	describe( "when handling props", () => {
		it( "should have default props", () => {
			render();

			component.nodeName.toLowerCase().should.equal( "img" );
			component.src.should.equal( "https://avatars.githubusercontent.com/anonymous?s=16" );
			component.className.should.equal( "avatar" );
		} );
	} );

	describe( "when rendering", () => {
		it( "should render properly", () => {
			render( {
				owner: "LeanKit-Labs",
				size: 20,
				className: "new-class"
			} );

			component.nodeName.toLowerCase().should.equal( "img" );
			component.src.should.equal( "https://avatars.githubusercontent.com/LeanKit-Labs?s=20" );
			component.className.should.equal( "new-class" );
		} );
	} );
} );<commit_msg>Renamed component to img in spec to aid in clarity<commit_after>import Avatar from "Avatar";

describe( "Avatar", () => {
	let img, container;

	beforeEach( () => {
		container = document.createElement( "div" );
	} );

	function render( props ) {
		ReactDOM.render( <Avatar {...props} />, container );
		img = container.children[ 0 ];
	}

	describe( "when handling props", () => {
		it( "should have default props", () => {
			render();

			img.nodeName.toLowerCase().should.equal( "img" );
			img.src.should.equal( "https://avatars.githubusercontent.com/anonymous?s=16" );
			img.className.should.equal( "avatar" );
		} );
	} );

	describe( "when rendering", () => {
		it( "should render properly", () => {
			render( {
				owner: "LeanKit-Labs",
				size: 20,
				className: "new-class"
			} );

			img.nodeName.toLowerCase().should.equal( "img" );
			img.src.should.equal( "https://avatars.githubusercontent.com/LeanKit-Labs?s=20" );
			img.className.should.equal( "new-class" );
		} );
	} );
} );
{'fraction_non_alphanumeric': 0.19592242665340626, 'fraction_numerical': 0.0069617105917454, 'mean_word_length': 3.5520361990950224, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '3417345', 'n_tokens_mistral': 774, 'n_tokens_neox': 682, 'n_words': 127}