summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/shared/services/user/user.service.spec.ts
blob: e1af3d4cfdab5154000f42b9bc2f4037192c699d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { TestBed, async } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http'; 

import { UserService } from './user.service';
import { User } from './user';

describe('UserService', () => {

  let service: UserService ;
  let dummyUser: User;

  beforeEach( () =>
   TestBed.configureTestingModule({
    imports:[HttpClientModule],
    providers: [UserService],
   }),
  );

  it('should be created', () => {
    const service: UserService = TestBed.get(UserService);
    expect(service).toBeTruthy();
  });

  it('should test getFunctionalMenuStaticDetailSession2', () =>{
  
      let response: Object = service.getFunctionalMenuStaticDetailSession2();
      expect(response).toEqual(User);

  });


});