1 import { TestBed } from '@angular/core/testing';
3 import { configureTestBed } from '~/testing/unit-test-helper';
4 import { PgCategoryService } from '../shared/pg-category.service';
5 import { PgSummaryPipe } from './pg-summary.pipe';
7 describe('OsdSummaryPipe', () => {
8 let pipe: PgSummaryPipe;
11 providers: [PgSummaryPipe, PgCategoryService]
15 pipe = TestBed.inject(PgSummaryPipe);
18 it('create an instance', () => {
19 expect(pipe).toBeTruthy();
22 it('tranforms value', () => {
29 expect(pipe.transform(value)).toEqual({