Guest User

Untitled

a guest
May 27th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // the basic structure
  2. describe("the class you want to test", function() {
  3. describe("a function you want to test", function() {
  4. it("should do something", function() {
  5. // your nice test code here
  6. })
  7. })
  8. })
  9.  
  10. // some more practical
  11. describe("Car", function() {
  12. describe("constructor", function() {
  13. it("should throw exception if no speed limit is passed", function() {
  14. // call the constructor and don't pass a speed limit!
  15. })
  16. })
  17. })
Add Comment
Please, Sign In to add comment