First refactor for improved performance and readability. Replaces nested promises with async/await pattern. Tests should still be functionally equivalent.
The tests still rely on side-effects at times (contract state). The next step would be to make them self-contained. Tests may also benefit from beforeEach() hooks to cut down on repetition.
First refactor for improved performance and readability. Replaces nested promises with async/await pattern. Tests should still be functionally equivalent.
The tests still rely on side-effects at times (contract state). The next step would be to make them self-contained. Tests may also benefit from
beforeEach()
hooks to cut down on repetition.