<commit_before><commit_msg>added example on failure<commit_after>import Inferno from '../src';

describe( 'Provider', () => {
	let container;

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

    afterEach( () => {
         Inferno.render( null, container );
    } );

// THIS WORKS

	it('should clear all the styles when removing `style`', () => {

		const template = Inferno.createTemplate((style) => {
			return {
				tag: 'div',
				attrs: {
					style: style,
				},
				children: 'Hello!'
			};
		});

		const styles = {display: 'none', color: 'red'};

		Inferno.render(template(styles), container);

		const stubStyle = container.firstChild.style;

		Inferno.render(<div />, container);
		expect(stubStyle.display).to.equal('none');
		expect(stubStyle.color).to.equal('red');
	});


	// THIS WORKS NOT! ( JSX)

	it('should clear all the styles when removing `style`', () => {

		const styles = {display: 'none', color: 'red'};
		Inferno.render(<div style={styles} />, container);

		const stubStyle = container.firstChild.style;

		Inferno.render(<div />, container);
		expect(stubStyle.display).to.equal('none');
		expect(stubStyle.color).to.equal('red');
	});



} );

{'fraction_non_alphanumeric': 0.18271604938271604, 'fraction_numerical': 0.0, 'mean_word_length': 3.437956204379562, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, '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': '6223523', 'n_tokens_mistral': 442, 'n_tokens_neox': 389, 'n_words': 83}