<commit_before>import { TestBed } from '@angular/core/testing'
import { Component, ViewChild, AfterViewInit, OnInit, ElementRef} from '@angular/core';
import { FormsModule, FormGroup, NgForm, AbstractControl } from '@angular/forms';

import { AssistancePrepareComponent } from './prepare.component'
import {DeductionCalculatorComponent} from './deduction-calculator/deduction-calculator.component';
import MspDataService from '../../service/msp-data.service';
import { LocalStorageService, LOCAL_STORAGE_SERVICE_CONFIG } from 'angular-2-local-storage';

describe('AssistancePrepareComponent', () => {
  let localStorageServiceConfig = {
      prefix: 'ca.bc.gov.msp',
      storageType: 'localStorage'
  };
  
  beforeEach(() => {
    TestBed.configureTestingModule({ 
      declarations: [AssistancePrepareComponent,
      DeductionCalculatorComponent],
      imports: [FormsModule],
      providers: [MspDataService,
        LocalStorageService,{
            provide: LOCAL_STORAGE_SERVICE_CONFIG, useValue: localStorageServiceConfig
        }    
      ]
  })
  });
  it ('should work', () => {
    let fixture = TestBed.createComponent(AssistancePrepareComponent)
    expect(fixture.componentInstance instanceof AssistancePrepareComponent).toBe(true, 'should create AssistancePrepareComponent')
    expect(fixture.componentInstance.lang('./en/index').checkEligibilityScreenTitle)
      .toBe('See if you qualify for financial assistance to pay for public health care coverage',
      'Should match what is i18n file.');
  });
})
<commit_msg>make unit test less stringent.<commit_after>import {TestBed} from '@angular/core/testing'
import {Component, ViewChild, AfterViewInit, OnInit, ElementRef} from '@angular/core';
import {FormsModule, FormGroup, NgForm, AbstractControl} from '@angular/forms';

import {AssistancePrepareComponent} from './prepare.component'
import {DeductionCalculatorComponent} from './deduction-calculator/deduction-calculator.component';
import MspDataService from '../../service/msp-data.service';
import {LocalStorageService, LOCAL_STORAGE_SERVICE_CONFIG} from 'angular-2-local-storage';

describe('AssistancePrepareComponent', () => {
  let localStorageServiceConfig = {
    prefix: 'ca.bc.gov.msp',
    storageType: 'localStorage'
  };

  beforeEach(() => {
    TestBed.configureTestingModule({
      declarations: [AssistancePrepareComponent,
        DeductionCalculatorComponent],
      imports: [FormsModule],
      providers: [MspDataService,
        LocalStorageService, {
          provide: LOCAL_STORAGE_SERVICE_CONFIG, useValue: localStorageServiceConfig
        }
      ]
    })
  });
  it('should work', () => {
    let fixture = TestBed.createComponent(AssistancePrepareComponent)
    expect(fixture.componentInstance instanceof AssistancePrepareComponent).toBe(true, 'should create AssistancePrepareComponent')
    expect(fixture.componentInstance.lang('./en/index').checkEligibilityScreenTitle)
      .toContain('See if you qualify',
        'Should match what is i18n file.')
  });
})

{'fraction_non_alphanumeric': 0.11547344110854503, 'fraction_numerical': 0.001979544704717915, 'mean_word_length': 4.635687732342007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4264637', 'n_tokens_mistral': 851, 'n_tokens_neox': 835, 'n_words': 173}