From 307e0357969fc12be5c498e3fcf414318875878f Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 20 Apr 2021 15:19:42 +0100 Subject: [PATCH] Fixed incorrect require path in theme tests - At some point we have updated the path that should be required to get helpers, but missed updating the path in this test - When run with the full suite, the test still passed, but when run independently it threw the error loadCoreHelpers is not a function - This is to do with some interaction with the middleware_spec.js tests - I'm working on breaking all this down so hopefully will get rid of any further weird test independence issues --- test/unit/services/themes/handlebars/helpers_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/services/themes/handlebars/helpers_spec.js b/test/unit/services/themes/handlebars/helpers_spec.js index 02e76a2481..7816946002 100644 --- a/test/unit/services/themes/handlebars/helpers_spec.js +++ b/test/unit/services/themes/handlebars/helpers_spec.js @@ -3,7 +3,7 @@ const _ = require('lodash'); const hbs = require('../../../../../core/frontend/services/theme-engine/engine'); // Stuff we are testing -const helpers = require('../../../../../core/frontend/helpers'); +const helpers = require('../../../../../core/frontend/services/themes/handlebars/helpers'); describe('Helpers', function () { const hbsHelpers = ['each', 'if', 'unless', 'with', 'helperMissing', 'blockHelperMissing', 'log', 'lookup', 'block', 'contentFor'];