
Getting Started with JavaScript Unit Testing with Jasmine and Rushaine McBean
Hanselminutes with Scott Hanselman
00:00
How to Describe a Function in a Framework
When you say describe, that's a method. And then within that you have a string, which is your description of that specification that we're checking. And then you have an anonymous function. So you should describe, you know, some string anonymous function. In this case, returning back the string world and that expectation given to you from. the framework is also going to actually now call to your actual Hello World function that exists somewhere else. Then it's going to match that against what you're trying to prove is true or false.
Play episode from 09:36
Transcript


