<commit_before>/**
 * Unit tests for the logon widget's 'Auth' service.
 *
 * @todo  Move login tests to this file.
 */
'use strict';

var Auth = require('../scripts/lib/Auth');
var Cookies = require('js-cookie');
var test = require('tape');

if (typeof jQuery === 'undefined') {
    window.jQuery = require('jquery');
}

var options = {
    authCookieName: 'Test_Auth_Cookie_Name',
    baseUrl: 'http://localhost:1337',
};

test('set options', function(t) {
    try {
        t.ok(Auth.setOptions(options), 'set Auth options');
        t.end();
    } catch (error) {
        t.end(error);
    }
});<commit_msg>Fix module name.<commit_after>/**
 * Unit tests for the logon widget's 'Auth' service.
 *
 * @todo  Move login tests to this file.
 */
'use strict';

var Auth = require('../scripts/lib/auth');
var Cookies = require('js-cookie');
var test = require('tape');

if (typeof jQuery === 'undefined') {
    window.jQuery = require('jquery');
}

var options = {
    authCookieName: 'Test_Auth_Cookie_Name',
    baseUrl: 'http://localhost:1337',
};

test('set options', function(t) {
    try {
        t.ok(Auth.setOptions(options), 'set Auth options');
        t.end();
    } catch (error) {
        t.end(error);
    }
});
{'fraction_non_alphanumeric': 0.18040816326530612, 'fraction_numerical': 0.006530612244897959, 'mean_word_length': 3.1986301369863015, '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': '7338693', 'n_tokens_mistral': 409, 'n_tokens_neox': 400, 'n_words': 104}