Update incorrect comments
This commit is contained in:
parent
c5370dd799
commit
20382a5476
|
@ -122,13 +122,13 @@ describe("removing sources", () => {
|
|||
|
||||
Project.removeSource(project, "main")
|
||||
|
||||
test("can delete sources without dependents", () => {
|
||||
expect(Project.getDependents(project, "second")) == []
|
||||
})
|
||||
|
||||
test("project doesn't have source", () => {
|
||||
expect(Project.getSource(project, "main")) == None
|
||||
})
|
||||
|
||||
test("dependents get updated", () => {
|
||||
expect(Project.getDependents(project, "second")) == []
|
||||
})
|
||||
})
|
||||
|
||||
describe("project with include", () => {
|
||||
|
|
|
@ -51,8 +51,7 @@ let setSource = (project: reducerProject, sourceId: string, value: string): unit
|
|||
project->Private.setSource(sourceId, value)
|
||||
|
||||
/*
|
||||
Removes the source for a given source Id. Only works on sources without dependents.
|
||||
Returns true for success
|
||||
Removes the source for a given source Id.
|
||||
*/
|
||||
@genType
|
||||
let removeSource = (project: reducerProject, sourceId: string): unit =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user