mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-08 04:09:03 +02:00
13 lines
476 B
JavaScript
13 lines
476 B
JavaScript
"use strict";
|
|
|
|
const { Uptake } = ChromeUtils.import("resource://normandy/lib/Uptake.jsm");
|
|
|
|
const Telemetry = Services.telemetry;
|
|
|
|
add_task(async function reportRecipeSubmitsFreshness() {
|
|
Telemetry.clearScalars();
|
|
const recipe = { id: 17, revision_id: "12" };
|
|
await Uptake.reportRecipe(recipe, Uptake.RECIPE_SUCCESS);
|
|
const scalars = Telemetry.getSnapshotForKeyedScalars("main", true);
|
|
Assert.deepEqual(scalars.parent["normandy.recipe_freshness"], { 17: 12 });
|
|
});
|