From cfd8b052306178252975802c558bb3d723550702 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Thu, 25 Jan 2024 13:29:28 -0800 Subject: [PATCH] Turn off asset pre-loading in tests Leaving this on results in a browser warning that we didn't use the assets we pre-loaded. Let's turn it off instead. --- packages/ilios-common/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ilios-common/index.js b/packages/ilios-common/index.js index 878d78605..fc97b0c98 100644 --- a/packages/ilios-common/index.js +++ b/packages/ilios-common/index.js @@ -105,7 +105,7 @@ module.exports = { }, contentFor: function (type, env) { - if (type === 'head') { + if (type === 'head' && env.environment !== 'test') { const rootUrl = env.rootUrl ? env.rootUrl : ''; const fonts = [ 'nunito/nunito-latin-400.woff2',