<commit_before>const Tweakpane = require('../src/main/js/tweakpane');

describe('Tweakpane', () => {
	it('should handle cange event and get correct value', () => {
		const INITIAL_VALUE = 'initial';
		const CHANGED_VALUE = 'changed';
		const params = {
			prop: INITIAL_VALUE
		};
		const pane = new Tweakpane();

		const p1 = new Promise((resolve) => {
			pane.on('change', (value) => {
				assert.strictEqual(<commit_msg>Fix typo<commit_after>const Tweakpane = require('../src/main/js/tweakpane');

describe('Tweakpane', () => {
	it('should handle change event and get correct value', () => {
		const INITIAL_VALUE = 'initial';
		const CHANGED_VALUE = 'changed';
		const params = {
			prop: INITIAL_VALUE
		};
		const pane = new Tweakpane();

		const p1 = new Promise((resolve) => {
			pane.on('change', (value) => {
				assert.strictEqual(
{'fraction_non_alphanumeric': 0.16389548693586697, 'fraction_numerical': 0.0023752969121140144, 'mean_word_length': 4.017857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6054490', 'n_tokens_mistral': 322, 'n_tokens_neox': 288, 'n_words': 66}