| OLD | NEW |
| (Empty) | |
| 1 library ng_bind_template_spec; |
| 2 |
| 3 import '../_specs.dart'; |
| 4 |
| 5 main() { |
| 6 describe('BindTemplateDirective', () { |
| 7 TestBed _; |
| 8 |
| 9 beforeEach(inject((TestBed tb) => _ = tb)); |
| 10 |
| 11 it('should bind template', |
| 12 inject((Scope scope, Injector injector, Compiler compiler) { |
| 13 var element = _.compile('<div ng-bind-template="{{salutation}} {{name}}!">
</div>'); |
| 14 scope.salutation = 'Hello'; |
| 15 scope.name = 'Heisenberg'; |
| 16 scope.$digest(); |
| 17 |
| 18 expect(element.text).toEqual('Hello Heisenberg!'); |
| 19 |
| 20 scope.salutation = 'Good-Bye'; |
| 21 scope.$digest(); |
| 22 |
| 23 expect(element.text).toEqual('Good-Bye Heisenberg!'); |
| 24 })); |
| 25 }); |
| 26 } |
| OLD | NEW |