diff --git a/karma.conf.js b/karma.conf.js index 8113af7..2ee1698 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -12,7 +12,9 @@ module.exports = function(config) { frameworks: ["jasmine", "karma-typescript"], // list of files / patterns to load in the browser - files: [ "src/vCarousel.ts", "tests/*.ts" ], + files: [ "src/vCarousel.ts", "tests/*.ts", { pattern: 'public/videos/*', watched: true, included: false, served: true } ], + + proxies: { "/videos/": "http://localhost:9876/base/public/videos/" }, // list of files / patterns to exclude exclude: [ @@ -45,7 +47,7 @@ module.exports = function(config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['Firefox', 'Chromium'], + browsers: ['FirefoxHeadless', 'ChromiumHeadless'], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits diff --git a/tests/vCarouselSpec.ts b/tests/vCarouselSpec.ts index b9ecbcf..c5636a1 100644 --- a/tests/vCarouselSpec.ts +++ b/tests/vCarouselSpec.ts @@ -4,7 +4,7 @@ const errors=require("../src/errors.js"); describe("vCarousel", () => { let vCarouselTest : vCarousel; - const videosWebDir="https://forge.chapril.org/Fab_Blab/vCarousel/src/branch/master/public/videos"; + const videosWebDir="hhttp://localhost:9876/videos"; const fixture="
"; beforeEach(() =>