/* eslint-env jasmine */
/* global jQuery, loadFixtures, testGet */

describe('Test', function() {

  beforeEach(function() {
    jasmine.getFixtures().fixturesPath = 'base/test/fixtures/';
  });

  beforeEach(function() {
    loadFixtures('test.html');
  });

  it('should works!', function() {
    expect(testGet(4)).toEqual(4);
    expect(testGet(5)).toEqual(5);
    expect(testGet(6)).toEqual(6);
  });

  it('should traverse DOM!', function() {
    expect(jQuery('#my-fixture').length).toEqual(1);
  });

  it('should handle click!', function() {
    var x = 0, $a = jQuery('#my-click');

    $a.on('click', () => x++);

    $a.trigger('click');

    expect(x).toEqual(1);
  });

});

@@ -66,69 +66,64 @@
 */%0A%0A
-describe('Test', function() %7B%0A%0A  beforeEach(function() %7B%0A    
+const basepath = this.parent.karma ? 'base/test/' : '';%0A
 jasm
@@ -155,27 +155,28 @@
 sPath = 
-'
+%60$%7B
 base
-/test/
+path%7D
 fixtures
@@ -180,16 +180,41 @@
 res/
-';%0A  %7D);
+%60;%0A%0Adescribe('Test', function() %7B
 %0A%0A  

Make test working with/without karma