The toBe() Jasmine matcher is basically the === operator (equal value and equal type).
Therefore, the expectation
expect(a).toBe(b);
can also be written as
expect(a === b).toBe(true);
Angular 8 Tutorial
https://www.youtube.com/watch?v=n6TDWpJ-qjs&list=PL5Agzt13Z4g_AVsqkZtsykXZPLcA40jVC
http://www.dotnetoffice.com/
Support Us
https://www.buymeacoffee.com/theDotNetOffice : Buy me a Book
Support: https://www.paypal.com/paypalme/theDotNetOffice
Facebook: https://www.facebook.com/TheDotNetOffice
Twitter: https://twitter.com/thedotnetoffice
#angular8Tutorials #angularunittest #Jasmine
Download
0 formats
No download links available.
Part 8- ToBe and ToEqual in-built matcher in angular unit test | Angular unit test case Tutorials | NatokHD