96. Creating service (#12 Section 14: Authentication service)

This commit is contained in:
Art
2021-09-12 10:19:45 +03:00
parent ff5688ca4a
commit 6817e13f33
4 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import {TestBed} from '@angular/core/testing';
import {AuthenticationService} from './authentication.service';
describe('AuthenticationService', () => {
let service: AuthenticationService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(AuthenticationService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import {Injectable} from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class AuthenticationService {
constructor() { }
}

View File

@ -0,0 +1,16 @@
import {TestBed} from '@angular/core/testing';
import {UserService} from './user.service';
describe('UserService', () => {
let service: UserService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(UserService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View File

@ -0,0 +1,9 @@
import {Injectable} from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class UserService {
constructor() { }
}