text: ﻿require(["jasmineEnv"], function (jasmineEnv) {
    var setupTests = function () {
      "use strict";
  
      describe("Given a Rule model", function () {
        var component = new Sitecore.Definitions.Models.Rule();
  
        describe("when I create a Rule model", function () {
          it("it should have a 'isVisible' property that determines if the Rule component is visible or not", function () {
            expect(component.get("isVisible")).toBeDefined();
          });
  
          it("it should set 'isVisible' to true by default", function () {
            expect(Rule.get("isVisible")).toBe(true);
          });
  
          it("it should have a 'toggle' function that either shows or hides the Rule component depending on the 'isVisible' property", function () {
            expect(component.toggle).toBeDefined();
          });
        });
      });
    };
  
    runTests(jasmineEnv, setupTests);
  });