<commit_before>describe("Events", function() {
	it("loadstarts", function(done) {
		var eventCheck = false;
		jacks()
			.get(url)
			.on('loadstart', function(e) {
				eventCheck = true;
			})
			.send(function(response) {
				expect(eventCheck).toBe(true);
				done();
			});
	});
	it("loadends", function(done) {
		var eventCheck = false;
		jacks()
			.get(url)
			.on('loadend', function(e) {
				eventCheck = true;
				expect(eventCheck).toBe(true);
				done();
			})
			.send(function(response) {
				
			});
	});
	it("progress", function(done) {
		var eventCheck = false;
		jacks()
			.get(url)
			.on('progress', function(e) {
				eventCheck = true;
			})
			.send(function(response) {
				expect(eventCheck).toBe(true);
				done();
			});
	});
});<commit_msg>Added tests for progress events<commit_after>describe("Events", function() {
	it("loadstarts", function(done) {
		var eventCheck = false;
		jacks()
			.get(url)
			.on('loadstart', function(e) {
				eventCheck = true;
			})
			.send(function(response) {
				expect(eventCheck).toBe(true);
				done();
			});
	});
	it("loadends", function(done) {
		var eventCheck = false;
		jacks()
			.get(url)
			.on('loadend', function(e) {
				eventCheck = true;
				expect(eventCheck).toBe(true);
				done();
			})
			.send(function(response) {
				
			});
	});
	it("progress", function(done) {
		var eventUploadCheck = false;
		var eventCheck = false;
		jacks()
			.get(url)
			.on('progress', function(e) {
				eventCheck = true;
			})
			.on('upload-progress', function(e) {
				eventUploadCheck = true;
			})
			.send(function(response) {
				expect(eventCheck).toBe(true);
				expect(eventUploadCheck).toBe(false);
				done();
			});
	});
	it("upload-progress", function(done) {
		var eventUploadCheck = false;
		var eventCheck = false;
		jacks()
			.post(url)
			.body({data:"my data"})
			.header("Content-Type", "application/json")
			.on('progress', function(e) {
				eventCheck = true;
			})
			.on('upload-progress', function(e) {
				eventUploadCheck = true;
			})
			.send(function(response) {
				expect(eventCheck).toBe(true);
				expect(eventUploadCheck).toBe(true);
				done();
			});
	});
});
{'fraction_non_alphanumeric': 0.18882733148661127, 'fraction_numerical': 0.0, 'mean_word_length': 3.2407045009784734, 'pattern_counts': {'":': 0, '<': 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': '2726329', 'n_tokens_mistral': 941, 'n_tokens_neox': 756, 'n_words': 126}