client-ui
Version:
Testing implementation of nodeJs Backend, angular frontend, and hopefully in a way that this can be deployed to s3/cloudfront
37 lines (31 loc) • 913 B
JavaScript
describe('Shared Client', function() {
var server = 'http://qloans:8080/v1/';
beforeEach(function() {
angular.mock.module('clientApp', function($provide) {
$provide.constant('rootConstants', {
'server': server
});
$provide.service('$state', function() {
});
});
});
beforeEach(function() {
inject(function($injector) {
$httpBackend = $injector.get('$httpBackend');
store = $injector.get('aiStorage');
});
})
var loan
,$httpBackend
,store;
beforeEach(inject(function(_loan_) {
loan = _loan_;
if (store.get('currentLoan')) {
store.remove('currentLoan');
}
}));
afterEach(function() {
$httpBackend.verifyNoOutstandingExpectation();
$httpBackend.verifyNoOutstandingRequest();
});
});