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

karma-jasmine

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-jasmine - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

23

lib/adapter.js

@@ -36,2 +36,9 @@ (function(window) {

// TODO(vojta): Karma might provide this
var getCurrentTransport = function() {
var location = window.parent.location;
return window.parent.io.sockets[location.protocol + '//' + location.host].transport.name;
};
/**

@@ -42,4 +49,3 @@ * Very simple reporter for jasmine

this.reportRunnerStarting = function(runner) {
var topLevelSuites = runner.topLevelSuites();
var getAllSpecNames = function(topLevelSuites) {
var specNames = {};

@@ -71,2 +77,15 @@

return specNames;
};
this.reportRunnerStarting = function(runner) {
var transport = getCurrentTransport();
var specNames = null;
// This structure can be pretty huge and it blows up socke.io connection, when polling.
// https://github.com/LearnBoost/socket.io-client/issues/569
if (transport === 'websocket' || transport === 'flashsocket') {
specNames = getAllSpecNames(runner.topLevelSuites());
}
tc.info({total: runner.specs().length, specs: specNames});

@@ -73,0 +92,0 @@ };

2

package.json
{
"name": "karma-jasmine",
"version": "0.1.0",
"version": "0.1.1",
"description": "A Karma plugin - adapter for Jasmine testing framework.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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