29 lines
965 B
TypeScript
29 lines
965 B
TypeScript
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'
|
|
import { provideHttpClientTesting } from '@angular/common/http/testing'
|
|
import { TestBed } from '@angular/core/testing'
|
|
import { PermissionsService } from '../services/permissions.service'
|
|
import { StoragePathService } from '../services/rest/storage-path.service'
|
|
import { StoragePathNamePipe } from './storage-path-name.pipe'
|
|
|
|
describe('StoragePathNamePipe', () => {
|
|
let pipe: StoragePathNamePipe
|
|
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({
|
|
providers: [
|
|
provideHttpClient(withInterceptorsFromDi()),
|
|
provideHttpClientTesting(),
|
|
],
|
|
})
|
|
})
|
|
|
|
// The pipe is a simple wrapper around ObjectNamePipe, see ObjectNamePipe for the actual tests.
|
|
it('should be created', () => {
|
|
pipe = new StoragePathNamePipe(
|
|
TestBed.inject(PermissionsService),
|
|
TestBed.inject(StoragePathService)
|
|
)
|
|
expect(pipe).toBeTruthy()
|
|
})
|
|
})
|