+
+ it("should open success with provided message and correct configuration", () => {
+ service.success("Success!");
+
+ expect(toastrSpy.success).toHaveBeenCalledWith("Success!", "", {
+ timeOut: 10000,
+ closeButton: true,
+ });
+ });
+
+ it("should open error with provided message and correct configuration", () => {
+ service.error("Error!");
+
+ expect(toastrSpy.error).toHaveBeenCalledWith("Error!", "", {
+ disableTimeOut: true,
+ closeButton: true,
+ });
+ });