<commit_before>import { describe, it, expect } from '@angular/core/testing';

import {currentAssignmentReducer, SET_CURRENT_ASSIGNMENT} from "./current-assignment.reducer";
import { Assignment } from "../models/assignment.model";

describe('current-assignment reducer', () => {
  it('set current assignment', () => {
    let payload = Assignment.TestBuilder.buildAssignment('test');

    let state = currentAssignmentReducer(undefined, {type: SET_CURRENT_ASSIGNMENT, payload: payload});

    expect(state).toEqual(payload);
  });

  it('perform no operation if invalid reducer operation', () => {
    let initialState = Assignment.TestBuilder.buildAssignment('initial');
    let payload = Assignment.TestBuilder.buildAssignment('test');<commit_msg>Fix lint<commit_after>import { describe, it, expect } from '@angular/core/testing';

import { currentAssignmentReducer, SET_CURRENT_ASSIGNMENT } from './current-assignment.reducer';
import { Assignment } from '../models/assignment.model';

describe('current-assignment reducer', () => {
  it('set current assignment', () => {
    let payload = Assignment.TestBuilder.buildAssignment('test');

    let state = currentAssignmentReducer(undefined, {type: SET_CURRENT_ASSIGNMENT, payload: payload});

    expect(state).toEqual(payload);
  });

  it('perform no operation if invalid reducer operation', () => {
    let initialState = Assignment.TestBuilder.buildAssignment('initial');
    let payload = Assignment.TestBuilder.buildAssignment('test');
{'fraction_non_alphanumeric': 0.13931681178834562, 'fraction_numerical': 0.0, 'mean_word_length': 5.610619469026549, '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': '7587385', 'n_tokens_mistral': 407, 'n_tokens_neox': 406, 'n_words': 88}