LP#1915326: fix AngularJS test suite user/gmcharlt/lp1915326_adding_love_to_the_field
authorGalen Charlton <gmc@equinoxOLI.org>
Fri, 12 May 2023 14:48:45 +0000 (10:48 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 12 May 2023 14:49:53 +0000 (10:49 -0400)
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 <gmc@equinoxOLI.org>
Open-ILS/web/js/ui/default/staff/test/karma.conf.js

index 09dcfff..2566992 100644 (file)
@@ -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