From 872024538626c1a24ab1c35c182d649a3e350d83 Mon Sep 17 00:00:00 2001 From: John-Philip Johansson Date: Sun, 29 Nov 2015 19:46:40 +0100 Subject: [PATCH] WIP --- test/spec/services/angular-apimock.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/spec/services/angular-apimock.js b/test/spec/services/angular-apimock.js index 047d1e2..9c6d60c 100644 --- a/test/spec/services/angular-apimock.js +++ b/test/spec/services/angular-apimock.js @@ -121,6 +121,21 @@ describe('Service: apiMock', function () { $timeout.flush(); } + describe('mocking', function () { + beforeEach(function () { + setGlobalCommand(true); + }); + + afterEach(function () { + unsetGlobalCommand(); + }); +/* + it('should ignore URLs outside of apiPath', inject(function (_$rootScope_, _$compile_, $templateCache) { + $templateCache.put('scripts/hello-world.html', '
hello world!
'); + $http.get('scripts/hello-world.html'); + expect('
hello world!
'); + }));*/ + }); describe('URL flag', function () {