<commit_before>import { toBeNull } from "./toBeNull";

describe("toBeNull", () => {
  it("should return passing assertion if undefined", () => {
    expect(toBeNull(null)).toEqual({
      value: null,
      pass: true,
      message: `is null`,
    });
  });

  it("should return passing assertion if not undefined", () => {
    const expected = "expectedValue";

    expect(toBeNull(expected)).toEqual({
      value: expected,
      pass: false,
      message: `is null`,
    });<commit_msg>Fix test name<commit_after>import { toBeNull } from "./toBeNull";

describe("toBeNull", () => {
  it("should return passing assertion if null", () => {
    expect(toBeNull(null)).toEqual({
      value: null,
      pass: true,
      message: `is null`,
    });
  });

  it("should return passing assertion if not null", () => {
    const expected = "expectedValue";

    expect(toBeNull(expected)).toEqual({
      value: expected,
      pass: false,
      message: `is null`,
    });
{'fraction_non_alphanumeric': 0.16427104722792607, 'fraction_numerical': 0.0, 'mean_word_length': 3.0123456790123457, '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': '4017379', 'n_tokens_mistral': 289, 'n_tokens_neox': 282, 'n_words': 76}