Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

De-duplicate the callback vs promise tests #149

Closed
@victorb

Description

@victorb

Currently, we duplicate all the tests (yay) so we're testing both the promise and callback implementations. While the idea is good, the implementation (copy-paste) is not ideal.

  1. Proposed implementation is to have one function with a callback that will automatically tests both implementations and remove all the duplicated tests.

  2. Another solution is to only test the callback vs promise interface in dedicated tests, and chose either callbacks or promises for the tests of the tests. But, we might miss some places by doing this.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions