Renamed Cache to CacheService to prevent name collisions
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { Cache } from './cache';
|
import { CacheService } from './cache';
|
||||||
|
|
||||||
describe('Cache', () => {
|
describe('Cache', () => {
|
||||||
let service: Cache;
|
let service: CacheService;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
TestBed.configureTestingModule({});
|
TestBed.configureTestingModule({});
|
||||||
service = TestBed.inject(Cache);
|
service = TestBed.inject(CacheService);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be created', () => {
|
it('should be created', () => {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { Contact } from 'chatenium-sdk-preview';
|
|||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root',
|
providedIn: 'root',
|
||||||
})
|
})
|
||||||
export class Cache {
|
export class CacheService {
|
||||||
contacts = signal<Contact[]>([])
|
contacts = signal<Contact[]>([])
|
||||||
contactsState = signal<LoadState>(LoadState.CLEAN_LOADING)
|
contactsState = signal<LoadState>(LoadState.CLEAN_LOADING)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user