<commit_before>'use strict';

var chai = require( 'chai' );
var sinon = require( 'sinon' );
var expect = chai.expect;
var jsdom = require( 'mocha-jsdom' );

describe( 'The focusTarget function', function() {
  var $, focusTarget, sandbox;

  jsdom();

  before( function() {
    $ = require( 'jquery' );
    focusTarget = require( '../../../cfgov/v1/preprocessed/js/modules/focus-target.js' );
    sandbox = sinon.sandbox.create();
  } );

  beforeEach( function() {
    // Adding a simplified version of the thing we want to test.
    // Then calling the jQuery to test after
    $( 'body' ).html( $( '<a id="skip-nav"' +
                            'href="#main">' +
                            'Skip to Main Content' +
                          '</a>' +
                          '<div id="#main"> </div>' ) );<commit_msg>Fixes #1047 - focusTarget unit test timeout<commit_after>'use strict';

var chai = require( 'chai' );
var sinon = require( 'sinon' );
var expect = chai.expect;
var jsdom = require( 'mocha-jsdom' );

describe( 'The focusTarget function', function() {
  var $, focusTarget, sandbox;

  jsdom();

  before( function() {
    $ = require( 'jquery' );
    focusTarget = require( '../../../cfgov/v1/preprocessed/js/modules/focus-target.js' );
  } );

  beforeEach( function() {
    sandbox = sinon.sandbox.create();
    // Adding a simplified version of the thing we want to test.
    // Then calling the jQuery to test after
    $( 'body' ).html( $( '<a id="skip-nav"' +
                            'href="#main">' +
                            'Skip to Main Content' +
                          '</a>' +
                          '<div id="#main"> </div>' ) );
{'fraction_non_alphanumeric': 0.16904761904761906, 'fraction_numerical': 0.0035714285714285713, 'mean_word_length': 2.045289855072464, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '404341', 'n_tokens_mistral': 521, 'n_tokens_neox': 504, 'n_words': 141}