<commit_before>import factory from "./setup/BoardFactory";
import {moveSequence} from "./setup/BoardHelper";
import { expect } from "chai";
import BoardBase from "common/BoardBase";

describe("EnPassant", () => {

  let subject: BoardBase;

  beforeEach(() => {
    subject = factory.setupEnpassant()
  })

  it("should allow en passant", () => {
    const results = moveSequence(subject, [["c2", "c4"], ["d4", "c3"]])
    expect(results).to.eql(["move", "enpassant"])
  });

  it("should not allow en passant if pawn moves two steps", () => {
    const results = moveSequence(subject, [["c2", "c3"], ["c3", "c4"], ["d4", "c3"]])
    expect(results).to.eql(["move", "move", "error"])
  });

  it("should not allow en passant if it is not the next move", () => {
    const results = moveSequence(subject, [["c2", "c4"], ["a7", "a6"], ["d4", "c3"]])
    expect(results).to.eql(["move", "move", "error"])
  });

});<commit_msg>Get rid of unnecessary chai expect import<commit_after>import factory from "./setup/BoardFactory";
import {moveSequence} from "./setup/BoardHelper";
import BoardBase from "common/BoardBase";

describe("EnPassant", () => {

  let subject: BoardBase;

  beforeEach(() => {
    subject = factory.setupEnpassant()
  })

  it("should allow en passant", () => {
    const results = moveSequence(subject, [["c2", "c4"], ["d4", "c3"]])
    results.should.eql(["move", "enpassant"])
  });

  it("should not allow en passant if pawn moves two steps", () => {
    const results = moveSequence(subject, [["c2", "c3"], ["c3", "c4"], ["d4", "c3"]])
    results.should.eql(["move", "move", "error"])
  });

  it("should not allow en passant if it is not the next move", () => {
    const results = moveSequence(subject, [["c2", "c4"], ["a7", "a6"], ["d4", "c3"]])
    results.should.eql(["move", "move", "error"])
  });

});
{'fraction_non_alphanumeric': 0.22531369339879978, 'fraction_numerical': 0.01745771958537916, 'mean_word_length': 4.285302593659942, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2334833', 'n_tokens_mistral': 636, 'n_tokens_neox': 621, 'n_words': 166}