Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
datasource
/
zipkin
/
utils
/
File Content:
transforms.test.ts
import { MutableDataFrame } from '@grafana/data'; import { traceFrameFields, zipkinResponse } from './testData'; import { transformResponse, transformToZipkin } from './transforms'; describe('transformResponse', () => { it('transforms response', () => { const dataFrame = transformResponse(zipkinResponse); expect(dataFrame.fields).toMatchObject(traceFrameFields); }); it('converts dataframe to ZipkinSpan[]', () => { const dataFrame = transformResponse(zipkinResponse); const response = transformToZipkin(new MutableDataFrame(dataFrame)); expect(response).toMatchObject(zipkinResponse); }); });
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
graphTransform.test.ts
2016 bytes
0644
graphTransform.ts
2897 bytes
0644
testData.ts
2759 bytes
0644
testResponse.ts
3443 bytes
0644
transforms.test.ts
627 bytes
0644
transforms.ts
5591 bytes
0644
N4ST4R_ID | Naxtarrr