2020-11-09 03:30:15 +00:00
|
|
|
"use strict";
|
2015-01-13 10:18:13 +00:00
|
|
|
|
2020-11-09 03:30:15 +00:00
|
|
|
describe("myApp.version module", function () {
|
|
|
|
beforeEach(module("myApp.version"));
|
2015-01-13 10:18:13 +00:00
|
|
|
|
2020-11-09 03:30:15 +00:00
|
|
|
describe("interpolate filter", function () {
|
|
|
|
beforeEach(
|
|
|
|
module(function ($provide) {
|
|
|
|
$provide.value("version", "TEST_VER");
|
|
|
|
})
|
|
|
|
);
|
2015-01-13 10:18:13 +00:00
|
|
|
|
2020-11-09 03:30:15 +00:00
|
|
|
it("should replace VERSION", inject(function (interpolateFilter) {
|
|
|
|
expect(interpolateFilter("before %VERSION% after")).toEqual(
|
|
|
|
"before TEST_VER after"
|
|
|
|
);
|
2015-01-13 10:18:13 +00:00
|
|
|
}));
|
|
|
|
});
|
|
|
|
});
|