<commit_before>"use strict";
var Browser = require("zombie");
var expect  = require("chai").expect;
var Lurker  = require("../lib/lurker");

describe("The lurker plugin", function () {
	it("has a name", function (done) {
		expect(Lurker.register.attributes, "name")
		.to.have.property("name", "lurker");

		done();
	});
});

describe("The lurker status page", function () {
	describe("when not authenticated", function () {
		var browser;

		before(function (done) {
			browser = new Browser();
			browser.visit("/").fin(done);
		});

		it("challenges the request", function () {
			expect(browser.statusCode, "status").to.equal(401);
		});
	});

	describe("when authenticated", function () {
		var browser;<commit_msg>Remove unnecessary 'done' calls from tests.<commit_after>"use strict";
var Browser = require("zombie");
var expect  = require("chai").expect;
var Lurker  = require("../lib/lurker");

describe("The lurker plugin", function () {
	it("has a name", function () {
		expect(Lurker.register.attributes, "name")
		.to.have.property("name", "lurker");
	});
});

describe("The lurker status page", function () {
	describe("when not authenticated", function () {
		var browser;

		before(function (done) {
			browser = new Browser();
			browser.visit("/").fin(done);
		});

		it("challenges the request", function () {
			expect(browser.statusCode, "status").to.equal(401);
		});
	});

	describe("when authenticated", function () {
		var browser;
{'fraction_non_alphanumeric': 0.18969072164948453, 'fraction_numerical': 0.004123711340206186, 'mean_word_length': 4.578544061302682, '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': '5175006', 'n_tokens_mistral': 514, 'n_tokens_neox': 452, 'n_words': 108}