Commit 5896b16781a6f57bb6a5381a4e482fe5651b794a
1 parent
01322927
Exists in
master
and in
8 other branches
Add initial test file to UtilService
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,28 @@ | @@ -0,0 +1,28 @@ | ||
1 | +(function() { | ||
2 | + 'use strict'; | ||
3 | + | ||
4 | + describe('util services', function() { | ||
5 | + // var UtilService, httpBackend; | ||
6 | + | ||
7 | + // beforeEach(module('dialoga')); | ||
8 | + | ||
9 | + // beforeEach(inject(function(_UtilService_, $httpBackend) { | ||
10 | + // UtilService = _UtilService_; | ||
11 | + // httpBackend = $httpBackend; | ||
12 | + // })); | ||
13 | + | ||
14 | + // it('should do something', function() { | ||
15 | + // var url = 'http://example.com/api/v1/data/103358'; | ||
16 | + // httpBackend.whenGET(url).respond({}); | ||
17 | + | ||
18 | + // UtilService.getData().then(function(result) { | ||
19 | + | ||
20 | + // expect(result.data).toBeDefined(); | ||
21 | + // expect(result.data.title).toEqual('My Title'); | ||
22 | + | ||
23 | + // }); | ||
24 | + | ||
25 | + // httpBackend.flush(); | ||
26 | + // }); | ||
27 | + }); | ||
28 | +})(); |