From dbfeab6d84c75c12e9271ce3809b4faa1f0c2f5e Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Fri, 18 Feb 2022 12:50:32 +1100 Subject: [PATCH] Rename runMePlease to run --- packages/squiggle-lang/__tests__/JS__Test.js | 6 +++--- packages/squiggle-lang/src/js/index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/squiggle-lang/__tests__/JS__Test.js b/packages/squiggle-lang/__tests__/JS__Test.js index 0f52488e..1a1bd321 100644 --- a/packages/squiggle-lang/__tests__/JS__Test.js +++ b/packages/squiggle-lang/__tests__/JS__Test.js @@ -2,11 +2,11 @@ var js = require("../src/js/index.js"); describe("A simple result", () => { test("mean(normal(5,2))", () => { - expect(js.runMePlease("mean(normal(5,2))")).toEqual({ tag: 'Ok', value: { hd: { NAME: 'Float', VAL: 5 }, tl: 0 } }); + expect(js.run("mean(normal(5,2))")).toEqual({ tag: 'Ok', value: { hd: { NAME: 'Float', VAL: 5 }, tl: 0 } }); }); test("10+10", () => { - let foo = js.runMePlease("normal(5,2)"); + let foo = js.run("normal(5,2)"); console.log(foo.value.hd.VAL) expect(1).toEqual(1); }); -}); \ No newline at end of file +}); diff --git a/packages/squiggle-lang/src/js/index.js b/packages/squiggle-lang/src/js/index.js index 0421d818..c2ada5e9 100644 --- a/packages/squiggle-lang/src/js/index.js +++ b/packages/squiggle-lang/src/js/index.js @@ -1,3 +1,3 @@ const ProgramEvaluator = require('../rescript/ProgramEvaluator.gen.js'); -exports.runMePlease = ProgramEvaluator.runAll \ No newline at end of file +exports.run = ProgramEvaluator.runAll