Example #1
0
    it("Can hide the loading spinner", () => {
      const action = toggleSpinner(false)

      expect(action).toEqual({
        type: "TOGGLE_SPINNER",
      })
      expect($("#edit-sections-spinner").css("display")).toBe("none")
    })
Example #2
0
    it("Can shows the loading spinner", () => {
      const action = toggleSpinner(true)

      expect(action).toEqual({
        type: "TOGGLE_SPINNER",
      })
      expect($("#edit-sections-spinner").css("display")).toBe("block")
    })