From 20382a54763acb3bf79a9e6aa0b7b17fd610aa1e Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Tue, 4 Oct 2022 09:47:17 +1100 Subject: [PATCH] Update incorrect comments --- .../__tests__/ReducerProject/ReducerProject_test.res | 8 ++++---- .../src/rescript/ForTS/ForTS_ReducerProject.res | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res b/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res index 152556b0..fdfb75fc 100644 --- a/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res +++ b/packages/squiggle-lang/__tests__/ReducerProject/ReducerProject_test.res @@ -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", () => { diff --git a/packages/squiggle-lang/src/rescript/ForTS/ForTS_ReducerProject.res b/packages/squiggle-lang/src/rescript/ForTS/ForTS_ReducerProject.res index 8e23a5f2..89972e8e 100644 --- a/packages/squiggle-lang/src/rescript/ForTS/ForTS_ReducerProject.res +++ b/packages/squiggle-lang/src/rescript/ForTS/ForTS_ReducerProject.res @@ -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 =>