SUI-Components / sui

Monorepo for SUI (Simple User Interface) packages.
169 stars 33 forks source link

Test/domain builder using spies #1779

Closed manjarcode closed 2 months ago

manjarcode commented 2 months ago

Use DomainBuilder to extend a use case and test it with a sinon spy

Description

While I was coding a test I realized it could be useful to pass a sinon spy to the DomainBuilder in order to verify if a use case has been called. I started to implement the feature, but then I realized it was already supported, so in this PR is only adding a test for this feature, in order to be example for others.

Also the Readme file was improved with an example of use.