Fixed test & removed unused code

This commit is contained in:
Philipp Czora
2018-09-18 13:14:29 +02:00
parent a34dad585e
commit 04599350b6
2 changed files with 2 additions and 12 deletions

View File

@@ -12,7 +12,6 @@ import {
fetchChangesetsByNamespaceNameAndBranch,
fetchChangesetsSuccess,
getChangesets,
getChangesetsForNamespaceAndNameFromState,
getFetchChangesetsFailure,
isFetchChangesetsPending
} from "./changesets";
@@ -186,8 +185,7 @@ describe("changesets", () => {
}
}
};
// const result = getChangesetsForNamespaceAndNameFromState("foo", "bar", state);
const result = getChangesets("foo", "bar", "", state);
const result = getChangesets(state, "foo", "bar" );
expect(result).toContainEqual({id: "id1"})
});