File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { EXTENSION_URL } from "./extension";
7
7
import { MetricsListener } from "./listener" ;
8
8
import StatsDClient from "hot-shots" ;
9
9
jest . mock ( "hot-shots" ) ;
10
- jest . requireActual ( "../utils/request" )
10
+ jest . requireActual ( "../utils/request" ) ;
11
11
12
12
const siteURL = "example.com" ;
13
13
@@ -185,10 +185,10 @@ describe("MetricsListener", () => {
185
185
siteURL,
186
186
} ) ;
187
187
await listener . onStartInvocation ( { } ) ;
188
- } )
188
+ } ) ;
189
189
afterEach ( ( ) => {
190
190
listener = undefined ;
191
- } )
191
+ } ) ;
192
192
it ( "calls flush on the agent" , async ( ) => {
193
193
const scope = nock ( EXTENSION_URL ) . post ( "/lambda/flush" , JSON . stringify ( { } ) ) . reply ( 200 ) ;
194
194
await listener ! [ "_localFlush" ] ( ) ;
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ export class MetricsListener {
196
196
private async _localFlush ( ) {
197
197
try {
198
198
if ( this . isExtensionRunning && this . config . localTesting ) {
199
- const { post } = require ( "../utils/request" )
199
+ const { post } = require ( "../utils/request" ) ;
200
200
const url = new URL ( LOCAL_FLUSH_PATH , EXTENSION_URL ) ;
201
201
const result = await post ( url , { } , { timeout : LOCAL_FLUSH_TIMEOUT_MS } ) ;
202
202
if ( ! result . success ) {
You can’t perform that action at this time.
0 commit comments