From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../components/normandy/test/browser/browser_RecipeRunner.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'toolkit/components/normandy/test/browser/browser_RecipeRunner.js') diff --git a/toolkit/components/normandy/test/browser/browser_RecipeRunner.js b/toolkit/components/normandy/test/browser/browser_RecipeRunner.js index 00f0f81c51..864c237ff9 100644 --- a/toolkit/components/normandy/test/browser/browser_RecipeRunner.js +++ b/toolkit/components/normandy/test/browser/browser_RecipeRunner.js @@ -216,7 +216,6 @@ decorate_task( withMockNormandyApi(), withStub(ClientEnvironment, "getClientClassification"), async function testClientClassificationCache({ - mockNormandyApi, getClientClassificationStub, }) { getClientClassificationStub.returns(Promise.resolve(false)); @@ -294,7 +293,6 @@ decorate_task( async function testReadFromRemoteSettings({ verifyObjectSignatureStub, processRecipeStub, - finalizeStub, reportRecipeStub, }) { const matchRecipe = { @@ -334,7 +332,7 @@ decorate_task( let recipesFromRS = ( await RecipeRunner._remoteSettingsClientForTesting.get() - ).map(({ recipe, signature }) => recipe); + ).map(({ recipe }) => recipe); // Sort the records by id so that they match the order in the assertion recipesFromRS.sort((a, b) => a.id - b.id); Assert.deepEqual( @@ -518,11 +516,7 @@ decorate_task( withStub(RecipeRunner, "run"), withStub(RecipeRunner, "registerTimer"), withStub(RecipeRunner, "watchPrefs"), - async function testInitFirstRun({ - runStub, - registerTimerStub, - watchPrefsStub, - }) { + async function testInitFirstRun({ runStub, registerTimerStub }) { await RecipeRunner.init(); Assert.deepEqual( runStub.args, @@ -818,7 +812,7 @@ decorate_task( withStub(Uptake, "reportRunner"), withStub(ActionsManager.prototype, "finalize"), NormandyTestUtils.withMockRecipeCollection([]), - async function testRunEvents({ reportRunnerStub, finalizeStub }) { + async function testRunEvents() { const observer = sinon.spy(); Services.obs.addObserver(observer, "recipe-runner:start"); -- cgit v1.2.3