<commit_before>import expect from "expect.js";

describe("Effect", () => {
  it("works", () => {
    // TODO
    expect(1).to.be(1);
  });
});<commit_msg>Add a test for `isEmpty`<commit_after>import expect from "expect.js";
import { Effect, isEmpty } from "../dist/effect";

describe("Effect", () => {
  describe("isEmpty", () => {
    it("returns true for the empty effect", () => {
      expect(isEmpty(Effect.empty())).to.be(true);
    });
    it("returns false for standard effects", () => {
      expect(isEmpty(Effect())).to.be(false);
      expect(isEmpty(Effect(_ => {}))).to.be(false);
    });
  })
});
{'fraction_non_alphanumeric': 0.23567921440261866, 'fraction_numerical': 0.0032733224222585926, 'mean_word_length': 3.5671641791044775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '5406592', 'n_tokens_mistral': 200, 'n_tokens_neox': 196, 'n_words': 38}