<commit_before>
import { component } from 'src/app-decorators';

describe('@component', () => {

	@component(HTMLElement)
	class FooComponent {

	}

	it('should instance of HTMLElement', () => {
		let fooComponent = new FooComponent();
		fooComponent.should.be.instanceOf(HTMLElement);
	});

});<commit_msg>added tests for "any custom component class extends from any dom element"<commit_after>
import { component } from 'src/app-decorators';

describe('@component', () => {

	@component(HTMLElement)
	class FooComponent {}

	@component(HTMLFormElement)
	class BarComponent {}

	it('should instance of HTMLElement', () => {
		let fooComponent = new FooComponent();
		fooComponent.should.be.instanceOf(HTMLElement);
	});

	it('should instance of HTMLFormElement', () => {
		let barComponent = new BarComponent();
		barComponent.should.be.instanceOf(HTMLFormElement);
	});

	it('should throw an exeption', () => {
		(function(){
			@component()
			class BazComponent {}
		}).should.throw('Passed argument is undefined');;
	});

});
{'fraction_non_alphanumeric': 0.1554907677356657, 'fraction_numerical': 0.0, 'mean_word_length': 5.0588235294117645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2846197', 'n_tokens_mistral': 335, 'n_tokens_neox': 314, 'n_words': 71}