Testing with jest or any other library #747
              
                Unanswered
              
          
                  
                    
                      yann-lauwers
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am looking for the best way to run tests on the utils I created with Dinero.
I've tried
expect(myCustomDineroUtils().toJSON()).toEqual(expectedAmount.toJSON());and it seems to work fine.myCustomDineroUtils returns a Dinero.Dinero object
Is there a better solution has anyone some tips to test my utils ?
Thank you. Looking forward for you help!
Beta Was this translation helpful? Give feedback.
All reactions