<commit_before>
buster.testCase('FruitMachine.define()', {
	setUp: function() {},

	"Should store the module in FruitMachine.store under module type": function() {
		FruitMachine.define({ module: 'my-module' });
		assert.defined(FruitMachine.store.modules['my-module']);
	},

	"Should return an instantiable constructor": function() {
		var View = FruitMachine.module({ module: 'new-module' });
		var view = new View();

		assert.defined(view._fmid);
		assert.equals('new-module', view.module());
	},

	"Should find module from internal module store if a `module` parameter is passed": function() {
		var apple = new FruitMachine.View({ module: 'apple' });

		assert.equals('apple', apple.module());
		assert.defined(apple.template);
	},

	tearDown: function() {
		FruitMachine.module.clear('my-module');
	}
});<commit_msg>Fix test referring to old API<commit_after>
buster.testCase('FruitMachine.define()', {
	setUp: function() {},

	"Should store the module in FruitMachine.store under module type": function() {
		FruitMachine.define({ module: 'my-module' });
		assert.defined(FruitMachine.store.modules['my-module']);
	},

	"Should return an instantiable constructor": function() {
		var View = FruitMachine.define({ module: 'new-module' });
		var view = new View();

		assert.defined(view._fmid);
		assert.equals('new-module', view.module());
	},

	"Should find module from internal module store if a `module` parameter is passed": function() {
		var apple = new FruitMachine.View({ module: 'apple' });

		assert.equals('apple', apple.module());
		assert.defined(apple.template);
	},

	tearDown: function() {
		delete FruitMachine.store['my-module'];
	}
});
{'fraction_non_alphanumeric': 0.1654632972322503, 'fraction_numerical': 0.0, 'mean_word_length': 4.939285714285714, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, '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': '3787038', 'n_tokens_mistral': 535, 'n_tokens_neox': 495, 'n_words': 130}