mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
feat($interpolate): expose start/end symbols in run phase
previously the startSymbol() and endSymbol() getters were exposed only via provider in the config phase
This commit is contained in:
@@ -113,6 +113,11 @@ describe('$interpolate', function() {
|
||||
}));
|
||||
|
||||
|
||||
it('should expose the startSymbol in run phase', inject(function($interpolate) {
|
||||
expect($interpolate.startSymbol()).toBe('((');
|
||||
}));
|
||||
|
||||
|
||||
it('should not get confused by matching start and end symbols', function() {
|
||||
module(function($interpolateProvider) {
|
||||
$interpolateProvider.startSymbol('--');
|
||||
@@ -139,5 +144,10 @@ describe('$interpolate', function() {
|
||||
it('should expose the endSymbol in config phase', module(function($interpolateProvider) {
|
||||
expect($interpolateProvider.endSymbol()).toBe('))');
|
||||
}));
|
||||
|
||||
|
||||
it('should expose the endSymbol in run phase', inject(function($interpolate) {
|
||||
expect($interpolate.endSymbol()).toBe('))');
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user