Whenever you need to test a function defined in an element, you can do it this way:
paste-code-macro | ||
---|---|---|
| ||
when: TestRun testRun = TestRun.builder() .buildElementTest("MyLogic4", "Element") then: testRun.getElementScript().sumOfCosts("someSku", 5) == 9 |
Whenever you need to test a function defined in an element, you can do it this way:
paste-code-macro | ||
---|---|---|
| ||
when: TestRun testRun = TestRun.builder() .buildElementTest("MyLogic4", "Element") then: testRun.getElementScript().sumOfCosts("someSku", 5) == 9 |