Check out a free preview of the full Unit Testing JavaScript (with CoffeeScript) course:
The "Affix Function" Lesson is part of the full, Unit Testing JavaScript (with CoffeeScript) course featured in this preview video. Here's what you'd learn in this lesson:

The affix function in the Jasmine-Fixture library is passed a selector just like the jQuery $ function. However, instead of finding the selector, affix will create an element based on that selector. This is helpful when unit testing because Jasmine-Fixture will remove anything affixed after each test runs.

Get Unlimited Access Now