utils.service.spec.js
684 Bytes
(function() {
'use strict';
describe('util services', function() {
// var UtilService, httpBackend;
// beforeEach(module('dialoga'));
// beforeEach(inject(function(_UtilService_, $httpBackend) {
// UtilService = _UtilService_;
// httpBackend = $httpBackend;
// }));
// it('should do something', function() {
// var url = 'http://example.com/api/v1/data/103358';
// httpBackend.whenGET(url).respond({});
// UtilService.getData().then(function(result) {
// expect(result.data).toBeDefined();
// expect(result.data.title).toEqual('My Title');
// });
// httpBackend.flush();
// });
});
})();