text: const itChecksALevel = require("../checkLevel.template-spec");
  const itAddsALevel = require("../addLevel.template-spec");
  const itPlaysALevel = require("../playLevel.template-spec");
  
  describe("the !chadd command", () => {
    const cb = (bot, user, id) => bot.command(`!chadd ${id}`, user);
  
    itChecksALevel(cb);
    itAddsALevel(cb);
    itPlaysALevel(1, cb, false);
  
    it("should not add a level that has already been beaten", async function() {
      const bot = this.buildBotInstance();
  
      const response = await bot.command("!chadd beaten1", "viewer");
  
      expect(this.bookmarks).toEqual([]);
    });
  
    it("should not add a level that has already been played", async function() {
      const bot = this.buildBotInstance();
  
      const response = await bot.command("!chadd played1", "viewer");
  
      expect(this.bookmarks).toEqual([]);
    });
  });
  