|
@@ -1,4 +1,4 @@
|
|
|
-import {sampleFunction } from "../src";
|
|
|
+import {evaluate, sampleFunction} from "../src";
|
|
|
|
|
|
describe("This is a simple test", () => {
|
|
|
test("Check the sampleFunction function", () => {
|
|
@@ -7,3 +7,9 @@ describe("This is a simple test", () => {
|
|
|
expect(actual).toEqual(expected);
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+describe("Simple expression tests", () => {
|
|
|
+ test("Check literal value", () => {
|
|
|
+ expect(evaluate({ type: "literal", value: 5 })).toBeCloseTo(5);
|
|
|
+ });
|
|
|
+});
|