Put this to karma.conf.js
{
// list of files / patterns to load in the browser
files: [
{pattern: 'scripts/**/*.js', included: false},
{pattern: 'scripts/**/*.html', served: true, included: false},
{pattern: 'tests/**/*.js', included: false}
]
preprocessors : [{'scripts/**/*.html' : ''}],
//...
}
and in you spec:
beforeEach(function(){
var fixtures = jasmine.getFixtures();
jasmine.getFixtures().fixturesPath = 'base/spec/fixtures/';
fixtures.load('templ.html');
});