fga-eps-mds/2019.1-unbrake

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

Summary

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

describe("add a file", () => {
  it("register the current filename", () => {
    const filename = "abobora.ini";

    const expectedAction = {
      type: "ADD_FILE",
      filename
    };
    expect(actions.addFile(filename)).toEqual(expectedAction);
  });
});