diff --git a/src/app/cache.spec.ts b/src/app/cache.spec.ts index 64deeb6..00e1548 100644 --- a/src/app/cache.spec.ts +++ b/src/app/cache.spec.ts @@ -1,13 +1,13 @@ import { TestBed } from '@angular/core/testing'; -import { Cache } from './cache'; +import { CacheService } from './cache'; describe('Cache', () => { - let service: Cache; + let service: CacheService; beforeEach(() => { TestBed.configureTestingModule({}); - service = TestBed.inject(Cache); + service = TestBed.inject(CacheService); }); it('should be created', () => { diff --git a/src/app/cache.ts b/src/app/cache.ts index 87eda74..4b85fc5 100644 --- a/src/app/cache.ts +++ b/src/app/cache.ts @@ -4,7 +4,7 @@ import { Contact } from 'chatenium-sdk-preview'; @Injectable({ providedIn: 'root', }) -export class Cache { +export class CacheService { contacts = signal([]) contactsState = signal(LoadState.CLEAN_LOADING) }