webogram-i2p/test/unit/filtersSpec.js
2014-01-05 20:07:11 +04:00

20 lines
448 B
JavaScript

'use strict';
/* jasmine specs for filters go here */
describe('filter', function() {
beforeEach(module('myApp.filters'));
describe('interpolate', function() {
beforeEach(module(function($provide) {
$provide.value('version', 'TEST_VER');
}));
it('should replace VERSION', inject(function(interpolateFilter) {
expect(interpolateFilter('before %VERSION% after')).toEqual('before TEST_VER after');
}));
});
});