@@ -19,7 +19,6 @@ import * as assert from 'assert';
1919import axios from 'axios' ;
2020import * as http from 'http' ;
2121import * as qs from 'querystring' ;
22-
2322import { ZpagesExporter , ZpagesExporterOptions } from '../src/zpages' ;
2423import { RpczData } from '../src/zpages-frontend/page-handlers/rpcz.page-handler' ;
2524import { StatsViewData , StatszParams } from '../src/zpages-frontend/page-handlers/statsz.page-handler' ;
@@ -268,7 +267,7 @@ describe('Zpages Exporter', () => {
268267 it ( 'should get view information' , async ( ) => {
269268 const view = globalStats . createView (
270269 'test/CountView' , measure , AggregationType . COUNT , tagKeys ,
271- 'A count test' , null ) ;
270+ 'A count test' ) ;
272271 globalStats . registerView ( view ) ;
273272 globalStats . record ( [ measurement , measurement2 ] , tagMap ) ;
274273
@@ -283,7 +282,7 @@ describe('Zpages Exporter', () => {
283282 it ( 'should get stats for view' , async ( ) => {
284283 const view = globalStats . createView (
285284 'test/CountView' , measure , AggregationType . COUNT , tagKeys ,
286- 'A count test' , null ) ;
285+ 'A count test' ) ;
287286 globalStats . registerView ( view ) ;
288287 globalStats . record ( [ measurement , measurement2 ] , tagMap ) ;
289288
@@ -301,8 +300,8 @@ describe('Zpages Exporter', () => {
301300 it ( 'should get view information' , async ( ) => {
302301 globalStats . registerExporter ( zpages ) ;
303302 const view = globalStats . createView (
304- 'test/SumView' , measure , AggregationType . SUM , tagKeys , 'A sum test' ,
305- null ) ;
303+ 'test/SumView' , measure , AggregationType . SUM , tagKeys ,
304+ 'A sum test' ) ;
306305 globalStats . registerView ( view ) ;
307306 globalStats . record ( [ measurement , measurement2 ] , tagMap ) ;
308307
@@ -317,8 +316,8 @@ describe('Zpages Exporter', () => {
317316 it ( 'should get stats for view' , async ( ) => {
318317 globalStats . registerExporter ( zpages ) ;
319318 const view = globalStats . createView (
320- 'test/SumView' , measure , AggregationType . SUM , tagKeys , 'A sum test' ,
321- null ) ;
319+ 'test/SumView' , measure , AggregationType . SUM , tagKeys ,
320+ 'A sum test' ) ;
322321 globalStats . registerView ( view ) ;
323322 globalStats . record ( [ measurement , measurement2 ] , tagMap ) ;
324323
@@ -337,7 +336,7 @@ describe('Zpages Exporter', () => {
337336 globalStats . registerExporter ( zpages ) ;
338337 const view = globalStats . createView (
339338 'test/LastValueView' , measure , AggregationType . LAST_VALUE , tagKeys ,
340- 'A last value test' , null ) ;
339+ 'A last value test' ) ;
341340 globalStats . registerView ( view ) ;
342341 globalStats . record ( [ measurement , measurement2 ] , tagMap ) ;
343342
@@ -353,7 +352,7 @@ describe('Zpages Exporter', () => {
353352 globalStats . registerExporter ( zpages ) ;
354353 const view = globalStats . createView (
355354 'test/LastValueView' , measure , AggregationType . LAST_VALUE , tagKeys ,
356- 'A last value test' , null ) ;
355+ 'A last value test' ) ;
357356 globalStats . registerView ( view ) ;
358357 globalStats . record ( [ measurement , measurement2 ] , tagMap ) ;
359358
@@ -474,13 +473,13 @@ describe('Zpages Exporter', () => {
474473 const view4 = globalStats . createView (
475474 'grpc.io/client/completed_rpcs' , measure3 , AggregationType . COUNT ,
476475 [ GRPC_CLIENT_METHOD , GRPC_CLIENT_STATUS ] ,
477- 'Number of completed client RPCs' , null ) ;
476+ 'Number of completed client RPCs' ) ;
478477 globalStats . registerView ( view4 ) ;
479478
480479 const view5 = globalStats . createView (
481480 'grpc.io/client/started_rpcs' , measure4 , AggregationType . COUNT ,
482481 [ GRPC_CLIENT_METHOD , GRPC_CLIENT_STATUS ] ,
483- 'Number of started client RPCs' , null ) ;
482+ 'Number of started client RPCs' ) ;
484483 globalStats . registerView ( view5 ) ;
485484
486485 const measurement = { measure, value : 22000 } ;
@@ -552,13 +551,13 @@ describe('Zpages Exporter', () => {
552551 const view4 = globalStats . createView (
553552 'grpc.io/server/completed_rpcs' , measure7 , AggregationType . COUNT ,
554553 [ GRPC_SERVER_METHOD , GRPC_SERVER_STATUS ] ,
555- 'Number of completed client RPCs' , null ) ;
554+ 'Number of completed client RPCs' ) ;
556555 globalStats . registerView ( view4 ) ;
557556
558557 const view5 = globalStats . createView (
559558 'grpc.io/server/started_rpcs' , measure8 , AggregationType . COUNT ,
560559 [ GRPC_SERVER_METHOD , GRPC_SERVER_STATUS ] ,
561- 'Number of started client RPCs' , null ) ;
560+ 'Number of started client RPCs' ) ;
562561 globalStats . registerView ( view5 ) ;
563562
564563 const measurement6 = { measure : measure5 , value : 2200 } ;
0 commit comments