Files
habitica/test/client-old/spec/karma.conf.js
Keith Holliday 28fec237fe Group plans misc fixes (#8388)
* Added notification for approval request in the group leaders language

* Added test for group task meta actions. Added sync when user claims

* Added tests for group task actions. Ensured assigned members are synce when added or removed

* Fixed approval required toggle

* Added support for users with comma in their name

* Fixed sync issue when user is approved and reloads the website

* Added advance options for group rewards

* Added back ticks to group claim message

* Fixed disappearing tasks that need approval

* Up chat limit to 400 for subbed groups

* Fixed line endings

* Updated activie subscription check

* Added group isSubscribed function

* Changed to isAfter
2017-01-18 07:54:49 -07:00

96 lines
3.9 KiB
JavaScript

// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function karmaConfig (config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['mocha', 'chai', 'chai-as-promised', 'sinon-chai'],
// list of files / patterns to load in the browser
files: [
'../../../website/client-old/bower_components/jquery/dist/jquery.js',
'../../../website/client-old/bower_components/pnotify/jquery.pnotify.js',
'../../../website/client-old/bower_components/angular/angular.js',
'../../../website/client-old/bower_components/angular-loading-bar/build/loading-bar.min.js',
'../../../website/client-old/bower_components/angular-resource/angular-resource.min.js',
'../../../website/client-old/bower_components/hello/dist/hello.all.min.js',
'../../../website/client-old/bower_components/angular-sanitize/angular-sanitize.js',
'../../../website/client-old/bower_components/bootstrap/dist/js/bootstrap.js',
'../../../website/client-old/bower_components/angular-bootstrap/ui-bootstrap.js',
'../../../website/client-old/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'../../../website/client-old/bower_components/angular-ui-router/release/angular-ui-router.js',
'../../../website/client-old/bower_components/angular-filter/dist/angular-filter.js',
'../../../website/client-old/bower_components/angular-ui/build/angular-ui.js',
'../../../website/client-old/bower_components/angular-ui-utils/ui-utils.min.js',
'../../../website/client-old/bower_components/Angular-At-Directive/src/at.js',
'../../../website/client-old/bower_components/Angular-At-Directive/src/caret.js',
'../../../website/client-old/bower_components/angular-mocks/angular-mocks.js',
'../../../website/client-old/bower_components/ngInfiniteScroll/build/ng-infinite-scroll.js',
'../../../website/client-old/bower_components/select2/select2.js',
'../../../website/client-old/bower_components/angular-ui-select2/src/select2.js',
'../../../website/client-old/bower_components/habitica-markdown/dist/habitica-markdown.min.js',
'../../../website/client-old/js/habitrpg-shared.js',
'../../../test/client-old/spec/mocks/**/*.js',
'../../../website/client-old/js/env.js',
'../../../website/client-old/js/app.js',
'../../../website/client-old/js/config.js',
'../../../website/client-old/js/services/**/*.js',
'../../../website/client-old/js/filters/**/*.js',
'../../../website/client-old/js/directives/**/*.js',
'../../../website/client-old/js/controllers/**/*.js',
'../../../website/client-old/js/components/**/*.js',
'../../../test/client-old/spec/specHelper.js',
'../../../test/client-old/spec/**/*.js',
],
// list of files / patterns to exclude
exclude: [],
// web server port
port: 8080,
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['PhantomJS'],
preprocessors: {
'../../../website/client-old/js/**/*.js': ['coverage'],
'../../../test/**/*.js': ['babel'],
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/karma',
},
// Enable mocha-style reporting, for better test visibility
reporters: ['mocha', 'coverage'],
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false,
});
};