{"size": 1327, "ext": "js", "max_stars_repo_path": "test/runtime/samples/component-svelte-slot-let-destructured-2/_config.js", "max_stars_repo_name": "vatro/svelte", "max_stars_repo_stars_event_min_datetime": "2016-11-20T19:37:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T21:52:16.000Z", "max_issues_repo_path": "test/runtime/samples/component-svelte-slot-let-destructured-2/_config.js", "max_issues_repo_name": "vatro/svelte", "max_issues_repo_issues_event_min_datetime": "2016-11-21T00:51:14.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T22:55:48.000Z", "max_forks_repo_path": "test/runtime/samples/component-svelte-slot-let-destructured-2/_config.js", "max_forks_repo_name": "vatro/svelte", "max_forks_repo_forks_event_min_datetime": "2016-11-28T08:35:12.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T17:14:12.000Z"}
{"max_stars_count": 65488, "max_issues_count": 6339, "max_forks_count": 3726, "avg_line_length": 19.231884058, "max_line_length": 72, "alphanum_fraction": 0.6239638282}
export default {
	html: `
		<div>
			hello world 0 hello
			<button>Increment</button>
		</div>
		<div>
			hello world 0 hello
			<button>Increment</button>
		</div>
		<div>
			hello world 0 hello
			<button>Increment</button>
		</div>
	`,
	async test({ assert, target, window }) {
		const [button1, button2, button3] = target.querySelectorAll('button');
		const event = new window.MouseEvent('click');

		await button1.dispatchEvent(event);
		assert.htmlEqual(target.innerHTML, `
			<div>
				hello world 1 hello
				<button>Increment</button>
			</div>
			<div>
				hello world 0 hello
				<button>Increment</button>
			</div>
			<div>
				hello world 0 hello
				<button>Increment</button>
			</div>
		`);

		await button2.dispatchEvent(event);
		assert.htmlEqual(target.innerHTML, `
			<div>
				hello world 1 hello
				<button>Increment</button>
			</div>
			<div>
				hello world 1 hello
				<button>Increment</button>
			</div>
			<div>
				hello world 0 hello
				<button>Increment</button>
			</div>
		`);

		await button3.dispatchEvent(event);
		assert.htmlEqual(target.innerHTML, `
			<div>
				hello world 1 hello
				<button>Increment</button>
			</div>
			<div>
				hello world 1 hello
				<button>Increment</button>
			</div>
			<div>
				hello world 1 hello
				<button>Increment</button>
			</div>
		`);
	}
};
