<commit_before>var apn = require("../");

describe("Notification", function() {

	var note;
	beforeEach(function() {
		note = new apn.Notification();
	});

	describe("aps payload", function() {
		describe("alert text", function() {
			describe("plain alert string", function() {
				it("gets the alert text", function() {
					note.alert = "hello";

					expect(note.getAlertText()).to.equal("hello");
				});
			});

			describe("alert object", function() {
				it("gets the alert text", function() {
					note.alert = { "body": "hello" };

					expect(note.getAlertText()).to.equal("hello");
				});
			});
		});
	});<commit_msg>More accurate description<commit_after>var apn = require("../");

describe("Notification", function() {

	var note;
	beforeEach(function() {
		note = new apn.Notification();
	});

	describe("aps payload", function() {
		describe("getAlertText", function() {
			describe("plain alert string", function() {
				it("gets the alert text", function() {
					note.alert = "hello";

					expect(note.getAlertText()).to.equal("hello");
				});
			});

			describe("alert object", function() {
				it("gets the alert text", function() {
					note.alert = { "body": "hello" };

					expect(note.getAlertText()).to.equal("hello");
				});
			});
		});
	});
{'fraction_non_alphanumeric': 0.20532915360501566, 'fraction_numerical': 0.0, 'mean_word_length': 3.593525179856115, 'pattern_counts': {'":': 2, '<': 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': '4400051', 'n_tokens_mistral': 480, 'n_tokens_neox': 381, 'n_words': 83}