From acd87cd359e10cb679309ce56b560cfd89c6d25a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 12 May 2023 10:48:45 -0400 Subject: [PATCH] LP#1915326: fix AngularJS test suite Several tests of egOrg started failing when Lovefield was added as a dependency. This patch fixes them by ensuring that Lovefield is loaded. To test ------- [1] Go to Open-ILS/web/js/ui/default/staff and run `npm run test`. Note that six tests fail because 'lf' is undefined. [2] Apply the patch and repeat step 1. This time, all of the tests should pass. Signed-off-by: Galen Charlton Signed-off-by: Jason Boyer Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- .../web/js/ui/default/staff/test/karma.conf.js | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/test/karma.conf.js b/Open-ILS/web/js/ui/default/staff/test/karma.conf.js index 09dcfff..2566992 100644 --- a/Open-ILS/web/js/ui/default/staff/test/karma.conf.js +++ b/Open-ILS/web/js/ui/default/staff/test/karma.conf.js @@ -6,6 +6,7 @@ module.exports = function(config){ logLevel: config.LOG_INFO, files : [ + 'build/js/lovefield.min.js', 'build/js/vendor.bundle.js', 'build/js/core.bundle.js', 'node_modules/angular-mocks/angular-mocks.js', // testing only -- 1.7.2.5