fga-eps-mds/2019.1-unbrake

View on GitHub
unbrake-frontend/src/tests/Actions/Request.test.jsx

Summary

Maintainability
A
1 hr
Test Coverage
import * as actions from "../../actions/RedirectActions";

describe("redirect page", () => {
  it("redirect to a specific page", () => {
    const url = "unbrake.ml/calibration";

    const expectedAction = {
      type: "REDIRECT_PAGE",
      url
    };
    expect(actions.redirect(url)).toEqual(expectedAction);
  });
});