合并为一个项目 #14

Merged
xiaohai2271 merged 56 commits from issue11 into master 2020-05-16 22:35:08 +08:00
7 changed files with 2 additions and 86 deletions
Showing only changes of commit eb7b3f6022 - Show all commits

View File

@@ -8,6 +8,7 @@ export class User {
role: string; role: string;
token?: string; token?: string;
pwd?: string; pwd?: string;
recentlyLandedDate?: string
} }
export class LoginReq { export class LoginReq {

View File

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

View File

@@ -8,7 +8,7 @@ import {LocalStorageService} from './local-storage.service';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
}) })
export class UserService { export class GlobalUserService {
constructor(private apiService: ApiService, constructor(private apiService: ApiService,
private localStorageService: LocalStorageService) { private localStorageService: LocalStorageService) {

View File

@@ -1,12 +0,0 @@
import { TestBed } from '@angular/core/testing';
import { LocalStorageService } from './local-storage.service';
describe('LocalStorageService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: LocalStorageService = TestBed.get(LocalStorageService);
expect(service).toBeTruthy();
});
});

View File

@@ -1,16 +0,0 @@
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

@@ -1,25 +0,0 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AdminComponent } from './admin.component';
describe('AdminComponent', () => {
let component: AdminComponent;
let fixture: ComponentFixture<AdminComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AdminComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(AdminComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

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