Skip to content

verdecchia/jest-extended-symbols-532

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[issue 532] jest-extended: toHaveBeenCalledOnceWith does not work with Symbols

Usage

  1. run yarn install
  2. run yarn test

Results: if functions are called the right way, both succeeds. If they are called the wrong way, both fail but with different message error:

  • toHaveBennCalledWith error:
Expected: Symbol(foo)
Received: Symbol(foo)
  • toHaveBeenCalledOnceWith error:
Expected mock function to have been called exactly once with Symbol(foo), but it was called with:
      Symbol(foo)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published