diff options
Diffstat (limited to 'devtools/client/application/test/browser/head.js')
-rw-r--r-- | devtools/client/application/test/browser/head.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/devtools/client/application/test/browser/head.js b/devtools/client/application/test/browser/head.js index 6b7e67ff8d..265fd44bf0 100644 --- a/devtools/client/application/test/browser/head.js +++ b/devtools/client/application/test/browser/head.js @@ -82,7 +82,11 @@ function checkTelemetryEvent(expectedEvent, objectName = "application") { // assert we only got 1 event with a valid session ID is(events.length, 1, "There was only 1 event logged"); const [event] = events; - ok(event.session_id > 0, "There is a valid session_id in the event"); + Assert.greater( + Number(event.session_id), + 0, + "There is a valid session_id in the event" + ); // assert expected data Assert.deepEqual(event, { ...expectedEvent, session_id: event.session_id }); |