From d7a0daf5fa2c0a3302a8fc6b9fa0744cfa17ab42 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Mon, 27 Apr 2015 19:29:39 +0100 Subject: Move registration of postUpdateHooks to the corresponding source files This completely decouples settings.coffee from all other background source files, so that it can (eventually) also be used in the frontend. --- tests/unit_tests/commands_test.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee index daaef016..e55dc0f2 100644 --- a/tests/unit_tests/commands_test.coffee +++ b/tests/unit_tests/commands_test.coffee @@ -1,5 +1,6 @@ require "./test_helper.js" extend global, require "./test_chrome_stubs.js" +global.Settings = {postUpdateHooks: {}} {Commands} = require "../../background_scripts/commands.js" context "Key mappings", -- cgit v1.2.3