Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

karma-qunit

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-qunit - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

22

lib/adapter.js
(function(window) {
function createQUnitConfig (karma, defaultConfig) { // eslint-disable-line no-unused-vars
var config = defaultConfig || {}
if (!karma.config || !karma.config.qunit) {
return {}
}
for (var key in karma.config.qunit) {
config[key] = karma.config.qunit[key]
}
return config
}
function createQUnitStartFn (tc, runnerPassedIn) { // eslint-disable-line no-unused-vars

@@ -92,4 +106,10 @@ return function () {

window.QUnit.config.autostart = false;
var config = createQUnitConfig(window.__karma__, {
autostart: false
});
for (var key in config) {
window.QUnit.config[key] = config[key];
}
if (window.removeEventListener) {

@@ -96,0 +116,0 @@ window.removeEventListener('load', window.QUnit.load, false);

13

package.json
{
"name": "karma-qunit",
"version": "0.1.5",
"version": "0.1.6",
"description": "A Karma plugin. Adapter for QUnit testing framework.",

@@ -45,9 +45,8 @@ "main": "lib/index.js",

"contributors": [
"Matt DuVall <matt@stripe.com>",
"Friedel Ziegelmayer <friedel.ziegelmayer@gmail.com>",
"dignifiedquire <dignifiedquire@gmail.com>",
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
"Aymeric Beaumet <aymeric@beaumet.me>",
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
"Marcin Szczepanski <mszczepanski@atlassian.com>",
"Sahat Yalkabov <sakhat@gmail.com>",
"Timo Tijhof <krinklemail@gmail.com>",
"dignifiedquire <dignifiedquire@gmail.com>",
"Aymeric Beaumet <aymeric.beaumet@gmail.com>",

@@ -57,4 +56,6 @@ "thenickcox <nick@nickcox.me>",

"Daniel Herman <daniel.c.herman@gmail.com>",
"Kristof Neirynck <k.neirynck@gmail.com>"
"Kristof Neirynck <k.neirynck@gmail.com>",
"Marcin Szczepanski <mszczepanski@atlassian.com>",
"Sahat Yalkabov <sakhat@gmail.com>"
]
}

@@ -37,2 +37,24 @@ # karma-qunit

You can also pass options for `QUnit.config` (documented [here](https://api.qunitjs.com/QUnit.config/)) as such:
```js
/// karma.conf.js
module.exports = function (config) {
config.set({
frameworks: ['qunit'],
plugins: ['karma-qunit'],
files: [
'*.js'
],
// client configuration
client: {
qunit: {
testTimeout: 5000
}
}
})
}
```
----

@@ -39,0 +61,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc