aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/httpSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/service/httpSpec.js')
-rw-r--r--test/service/httpSpec.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/service/httpSpec.js b/test/service/httpSpec.js
index 83a6e860..210020f4 100644
--- a/test/service/httpSpec.js
+++ b/test/service/httpSpec.js
@@ -758,6 +758,16 @@ describe('$http', function() {
expect(callback).toHaveBeenCalledOnce();
expect(callback.mostRecentCall.args[0]).toEqual([1, 'abc', {foo:'bar'}]);
});
+
+
+ it('should not deserialize tpl beginning with ng expression', function() {
+ $httpBackend.expect('GET', '/url').respond('{{some}}');
+ $http.get('/url').on('200', callback);
+ $httpBackend.flush();
+
+ expect(callback).toHaveBeenCalledOnce();
+ expect(callback.mostRecentCall.args[0]).toEqual('{{some}}');
+ });
});