Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 021a571

Browse files
committed
tests(ng-include): fix the unit test
1 parent 32b0a21 commit 021a571

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/directives/ng_include_spec.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ main() {
1212
module.type(HttpFutures, MockHttpFutures);
1313
}));
1414

15-
it('should fail', inject((Scope scope, TemplateCache cache, HttpFutures futures) {
16-
cache.put('tpl.html', 'my name is {{name}}');
15+
it('should fetch tempalte from url', inject((Scope scope, TemplateCache cache, HttpFutures futures) {
16+
cache.put('tpl.html', new HttpResponse(200, 'my name is {{name}}'));
1717

1818
var element = _.compile('<div ng-include="template"></div>');
1919

0 commit comments

Comments
 (0)