Get an overview of both test-driven and behavior-driven development
Write useful specs by determining what you need to test—and what you don’t
Test the behavior of new and existing code against the specs you create
Apply Jasmine matchers and discover how to build your own
Organize code suites into groups and subgroups as your code becomes more complex
Use a Jasmine spy in place of a function or an object—and learn why it’s valuable
Chapter 1 Intro to Testing
What Is Software Testing?
Why Is It Useful?
Chapter 2 Jasmine
What Is Jasmine?
Getting Set Up with Jasmine
Testing Existing Code with describe, it, and expect
Writing the Tests First with Test-Driven Development
Chapter 3 Writing Good Tests
Cardinal Rule: When in Doubt, Test
Chapter 4 Matchers in Depth
Yes or No? toBeTruthy, toBeFalsy
Negate Other Matchers with not
Check If an Element Is Present with toContain
Is It Defined? toBeDefined, toBeUndefined
Is It NaN? toBeNaN
Comparators: toBeGreaterThan, toBeLessThan
Using toMatch with Regular Expressions
Checking If a Function Throws an Error with toThrow
Chapter 5 More Jasmine Features
Before and After
Skipping Specs and Suites
Matching Class Names
Chapter 6 Spies
The Basics: Spying on a Function
Calling Through: Making Your Spy Even Smarter
Making Sure a Spy Returns a Specific Value
Replacing a Function with a Completely Different Spy
He most recently worked at UniversityNow, an educational startup in Palo Alto.
The entire book is only about 50 pages. Its content is more or less the same as jasmine online docs (http://pivotal.github.io/jasmine/).
The BDD is not explained on a real project it's just mentioned (and after reading I can see no difference between BDD and TDD).
Most of jasmine functionalities are described how they can be used, but neither of the following are considered: - when do you need to do this (in a real world project) - how it works inside jasmine (in comparison, jQuery books explain how jQuery works internally).
It seems as the author didn't read his book after finishing it. In the last chapter he mentions that smething is done the same way as jasmine asynchronous tests - which are not mentioned before. By the way, you won't learn how to write asynchronous tests from this book.
I'm new to jasmine (that's why I read the book), but I don't feel my knowledge/skills have boosted. I think I'd get the same by reading online docs. An advanced developer will not learn much from it.
Bottom Line No, I would not recommend this to a friend
You should know right away: this book is short, 41 pages, stem to stern.
The prose can get clunky. Not unclear or incoherent, just lacking in grace, and there is one serious code error, already noted in the errata page for the book at O'Reilly Media. Hahn makes no mention of the active community of developers using and extending Jasmine nor of Jasmine's shortcomings (it's not good at testing DOM manipulations without an additional plugin) – this is very much "How To Get Started With Jasmine".
Minus "why you should test your software" arguments and some enthusiastic coverage of CoffeeScript and Ruby, you're left with something roughly equivalent to a high-quality Web tutorial. That's nothing to sneeze at, but it's not "The Definitive Guide", either.
Bottom Line Yes, I would recommend this to a friend