
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
A Karma plugin. Adapter for the OzJS framework.
The easiest way is to keep karma-ozjs as a devDependency in your package.json.
{
"devDependencies": {
"karma": "~0.10",
"karma-ozjs": "~0.4.0"
}
}
You can simple do it by:
npm install karma-ozjs --save-dev
// karma.conf.js
module.exports = function(config) {
config.set({
// frameworks to use
frameworks: [
'mocha',
'chai-sinon',
'ozjs', // ozjs must be executed last
],
// list of files / patterns to load in the browser
files: [
{ pattern: 'js/vendor/**/*.js', included: false },
{ pattern: 'js/appname/**/*.js', included: false },
"test/config.js",
"test/tests.js",
"test/spec_model_A.js",
"test/spec_view_B.js"
// ...
],
// ...
// test/config.js
require.config({
// Karma serves files from '/base'
baseUrl: 'base/js/vendor/',
aliases: {
'test': '../../test/',
'appname': '../appname/'
}
});
define.amd = {}; // the default is null in karma-ozjs
// test/tests.js
require([
'dollar',
'appname/app'
], function($, app){
describe('app.wrapper', function(){
it('sould be an Dollar object', function(){
expect(app.wrapper).to.be.an.instanceof($);
});
});
});
// `describe` is invalid here
// test/spec_model_A.js
require([
'dollar',
'appname/model/A'
], function($, model_A){
// describe(...
});
Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.
FAQs
A Karma plugin. Adapter for OzJS framework
We found that karma-ozjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.