/**
 * An example specification for the example module
 * Loads the module and runs the test suite
 */
define(['modules/<%= name %>'], function (module) {
  'use strict';

  // Test suite INIT
  describe('INIT', function () {

    it('is available', function () {
      expect(module).not.toBe(null);
    });

    it('has getter for event name', function () {
      expect(module.getEventName()).toBe('_test');
    });

    it('fires event on init', function () {
      var eventCalled;

      $(document).on(module.getEventName(), function () {
        eventCalled = true;
      });

      module.init();

      expect(eventCalled).toBeTruthy();
    });
  });
});

@@ -138,22 +138,27 @@
 nction (
-module
+%3C%25= name %25%3E
 ) %7B%0A  'u

Use the generated module's name as argument in test-spec define callback.