Update incorrect comments

This commit is contained in:
Sam Nolan 2022-10-04 09:47:17 +11:00
parent c5370dd799
commit 20382a5476
2 changed files with 5 additions and 6 deletions

View File

@ -122,13 +122,13 @@ describe("removing sources", () => {
Project.removeSource(project, "main") Project.removeSource(project, "main")
test("can delete sources without dependents", () => {
expect(Project.getDependents(project, "second")) == []
})
test("project doesn't have source", () => { test("project doesn't have source", () => {
expect(Project.getSource(project, "main")) == None expect(Project.getSource(project, "main")) == None
}) })
test("dependents get updated", () => {
expect(Project.getDependents(project, "second")) == []
})
}) })
describe("project with include", () => { describe("project with include", () => {

View File

@ -51,8 +51,7 @@ let setSource = (project: reducerProject, sourceId: string, value: string): unit
project->Private.setSource(sourceId, value) project->Private.setSource(sourceId, value)
/* /*
Removes the source for a given source Id. Only works on sources without dependents. Removes the source for a given source Id.
Returns true for success
*/ */
@genType @genType
let removeSource = (project: reducerProject, sourceId: string): unit => let removeSource = (project: reducerProject, sourceId: string): unit =>