Socket
Socket
Sign inDemoInstall

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 1.2.1 to 2.0.0

47

lib/adapter.js
(function(window) {
'use strict'
function createQUnitConfig (karma, defaultConfig) { // eslint-disable-line no-unused-vars

@@ -39,2 +41,20 @@ var config = defaultConfig || {}

}
if (typeof document !== 'undefined' && document.getElementById && document.createElement && document.body) {
// Create a qunit-fixture element to match behaviour of regular qunit runner.
// The fixture is only created once when the runner begins.
// Resetting is handled by qunit
var fixture = document.getElementById(FIXTURE_ID)
if (!fixture) {
fixture = document.createElement('div')
fixture.id = FIXTURE_ID
// style to match qunit runner's CSS
fixture.style.position = 'absolute'
fixture.style.left = '-10000px'
fixture.style.top = '-10000px'
fixture.style.width = '1000px'
fixture.style.height = '1000px'
document.body.appendChild(fixture)
}
}
})

@@ -57,21 +77,2 @@ }

testResult = { success: true, errors: [] }
if (typeof document !== 'undefined' && document.getElementById && document.createElement && document.body) {
// create a qunit-fixture element to match behaviour of regular qunit
// runner. The fixture is only removed at the start of a subsequent test
// so it can be inspected after a test run.
var fixture = document.getElementById(FIXTURE_ID)
if (fixture) {
fixture.parentNode.removeChild(fixture)
}
fixture = document.createElement('div')
fixture.id = FIXTURE_ID
// style to match qunit runner's CSS
fixture.style.position = 'absolute'
fixture.style.left = '-10000px'
fixture.style.top = '-10000px'
fixture.style.width = '1000px'
fixture.style.height = '1000px'
document.body.appendChild(fixture)
}
})

@@ -103,3 +104,3 @@

description: test.name,
suite: test.module && [test.module] || [],
suite: (test.module && [test.module]) || [],
success: testResult.success,

@@ -119,3 +120,7 @@ skipped: test.skipped,

runner.load()
runner.start()
// honor autostart config, useful for tests loaded asynchronously
if (config.autostart !== false) {
runner.start()
}
}

@@ -122,0 +127,0 @@ }

{
"name": "karma-qunit",
"version": "1.2.1",
"version": "2.0.0",
"description": "A Karma plugin. Adapter for QUnit testing framework.",
"main": "lib/index.js",
"scripts": {
"lint": "grunt eslint",
"test": "grunt"

@@ -25,21 +26,23 @@ },

"devDependencies": {
"eslint": "^2.13.1",
"eslint-config-standard": "^5.3.1",
"eslint-plugin-promise": "^1.3.2",
"eslint-plugin-standard": "^1.3.2",
"eslint": "^4.18.2",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-standard": "^3.0.1",
"grunt": "^1.0.1",
"grunt-bump": "^0.8.0",
"grunt-eslint": "^18.1.0",
"grunt-eslint": "^20.1.0",
"grunt-karma": "2.x",
"grunt-npm": "0.0.2",
"jasmine-core": "^2.3.4",
"karma": "1.x || ^0.13.3",
"karma-chrome-launcher": "1.x || ^0.2.0",
"jasmine-core": "^3.1.0",
"karma": "^2.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "1.x || ^0.1.6",
"karma-jasmine": "1.x || ^0.3.6",
"load-grunt-tasks": "^3.2.0",
"qunitjs": "^2.0.0"
"qunit": "^2.5.1"
},
"peerDependencies": {
"qunitjs": "^1.14.0 || ^2.0.0"
"qunit": "^2.0.0"
},

@@ -51,8 +54,10 @@ "license": "MIT",

"Matt DuVall <matt@stripe.com>",
"Mark Ethan Trostler <mark@zzo.com>",
"Stefan Sechelmann <stefan@sechel.de>",
"Timo Tijhof <krinklemail@gmail.com>",
"masubi <justin.masui@gmail.com>",
"Mark Ethan Trostler <mark@zzo.com>",
"Friedel Ziegelmayer <friedel.ziegelmayer@gmail.com>",
"Ulrich Block <u.block@sap.com>",
"masubi <masubi@users.noreply.github.com>",
"Aymeric Beaumet <aymeric@beaumet.me>",
"masubi <masubi@users.noreply.github.com>",
"thenickcox <nick@nickcox.me>",

@@ -66,5 +71,5 @@ "Brian Donovan <donovan@squareup.com>",

"Tim Robertson <trobertson@spredfast.com>",
"Timo Tijhof <krinklemail@gmail.com>",
"pallxk <github@pallxk.com>",
"Aymeric Beaumet <aymeric.beaumet@gmail.com>"
]
}

@@ -37,3 +37,3 @@ # karma-qunit

You can also pass options for `QUnit.config` (documented [here](https://api.qunitjs.com/QUnit.config/)) as such:
You can also pass options for `QUnit.config` (documented [here](https://api.qunitjs.com/config/QUnit.config)) as such:

@@ -62,8 +62,8 @@ ```js

Note: `showUI: true` needs the `clearContext: false` option to display correctly in non-debug mode.
Note: `showUI: true` needs the `clearContext: false` option to display correctly in non-debug mode.
----
For more information on Karma see the [homepage]. If you're using `karma-qunit` to test Ember.js, you might find Karma's [Ember guide](http://karma-runner.github.io/0.12/plus/emberjs.html) helpful.
For more information on Karma see the [homepage]. If you're using `karma-qunit` to test Ember.js, you might find Karma's [Ember guide](http://karma-runner.github.io/latest/plus/emberjs.html) helpful.
[homepage]: http://karma-runner.github.com
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