This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(templates): replace the default interpolation symbol with the use…
…r configured one Closes #309
- Loading branch information
Matt Lewis
committed
Mar 31, 2016
1 parent
7bf98bd
commit 73a052e
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use strict'; | ||
|
||
var angular = require('angular'); | ||
|
||
describe('calendar config', function() { | ||
|
||
beforeEach(angular.mock.module('mwl.calendar', function($interpolateProvider) { | ||
$interpolateProvider.startSymbol('[['); | ||
$interpolateProvider.endSymbol(']]'); | ||
})); | ||
|
||
var $templateCache; | ||
|
||
beforeEach(inject(function(_$templateCache_) { | ||
$templateCache = _$templateCache_; | ||
})); | ||
|
||
it('should replace the interpolation symbol with the user configured one in templates', function() { | ||
expect($templateCache.get('mwl/calendarMonthCell.html').indexOf('class="cal-month-day [[ day.cssClass ]]"') > -1).to.be.true; | ||
}); | ||
|
||
}); |