Skip to content

Commit

Permalink
utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaLRussell committed Aug 31, 2023
1 parent bafa9cf commit d3d0fcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/static/tests/unit/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,11 @@ describe("generateBatchPars", () => {
it("generates BatchPars for Custom variation type", () => {
const result = generateBatchPars(rootState, customSettings, parameterValues)!;
expect(result.error).toBe(null);
expect(result.batchPars!.name).toBe("C");
expect(result.batchPars!.base).toBe(parameterValues);
expect(result.batchPars!.values).toStrictEqual([1, 2, 3]);
expect(result.batchPars!.varying).toStrictEqual([{
name: "C",
values: [1, 2, 3]
}]);
expect(spyBatchParsDisplace).not.toHaveBeenCalled();
expect(spyBatchParsRange).not.toHaveBeenCalled();
});
Expand Down

0 comments on commit d3d0fcc

Please sign in to comment.