<commit_before>module("apptentive");

// This automated test script uses the QUnit API: http://api.qunitjs.com/category/assert/

var initialUserName = "Peter";
asyncTest("Test setting Apptentive Initial User Name", 1, function() {
	forge.apptentive.setInitialUserName(
		function(success) {
			ok(true, "Set user name");
			start();
		},
		function(error) {
			ok(false, "Unable to set user name");
			start();
		},
		initialUserName
	);
});

if (forge.is.ios()) {
	asyncTest("Test getting Apptentive Initial User Name", 1, function() {
		forge.apptentive.initialUserName(
			function(success) {
				deepEqual(success, initialUserName, "User name should be set");
				start();
			},
			function(error) {
				ok(false, "Error getting user name.");
				start();
			}
		);
	});
}

var initialUserEmail = "<EMAIL>";
asyncTest("Test setting Apptentive Initial User Email Address", 1, function() {
	forge.apptentive.setInitialUserEmailAddress(
		function(success) {
			ok(true, "Set user email");
			start();
		},
		function(error) {
			ok(false, "Unable to set user email");
			start();
		},
		initialUserEmail<commit_msg>Delete `initialUserName` getter test. Getter is no longer provided in the Trigger module API.<commit_after>module("apptentive");

// This automated test script uses the QUnit API: http://api.qunitjs.com/category/assert/

var initialUserName = "Peter";
asyncTest("Test setting Apptentive Initial User Name", 1, function() {
	forge.apptentive.setInitialUserName(
		function(success) {
			ok(true, "Set user name");
			start();
		},
		function(error) {
			ok(false, "Unable to set user name");
			start();
		},
		initialUserName
	);
});

var initialUserEmail = "<EMAIL>";
asyncTest("Test setting Apptentive Initial User Email Address", 1, function() {
	forge.apptentive.setInitialUserEmailAddress(
		function(success) {
			ok(true, "Set user email");
			start();
		},
		function(error) {
			ok(false, "Unable to set user email");
			start();
		},
		initialUserEmail
{'fraction_non_alphanumeric': 0.14199090449722082, 'fraction_numerical': 0.0025265285497726125, 'mean_word_length': 4.26595744680851, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3225731', 'n_tokens_mistral': 719, 'n_tokens_neox': 631, 'n_words': 169}