New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

erik

Package Overview
Dependencies
Maintainers
13
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erik - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

5

index.js

@@ -27,2 +27,4 @@ "use strict";

* @param {Number} [options.karmaConfig.port=9876] - Port on which to run the Karma server.
* @param {String[]} [options.karmaConfig.browsers] - What browsers to test on, defaults to
* PhantomJS.
* @param {String} [bundlePath] - Base bath to use for Erik's bundled files. A directory named

@@ -38,2 +40,3 @@ * `erik` will be created here.

this._port = (options.karmaConfig && options.karmaConfig.port) || 9876;
this._browsers = (options.karmaConfig && options.karmaConfig.browsers) || ['PhantomJS'];
this._bundlePath = options.bundlePath || '';

@@ -131,3 +134,3 @@

frameworks: ['jasmine'],
browsers: ['PhantomJS'],
browsers: this._browsers,
reporters: ['mocha'],

@@ -134,0 +137,0 @@ failOnEmptyTestSuite: false,

2

package.json
{
"name": "erik",
"version": "1.2.0",
"version": "1.2.1",
"description": "Start running your client `Jasmine` tests headlessly with `PhantomJS` and `gulp` today.",

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

@@ -121,2 +121,19 @@ # Erik

##### Testing on other browsers
Should you desire to use a browser other than PhantomJS, you can do so by providing a `browsers` array in the `karmaConfig` object. Note that you'll need to install the appropriate [browser plugins](http://karma-runner.github.io/1.0/config/browsers.html) for Karma.
```js
new Erik({
gulp,
...
karmaConfig: {
port: 1337,
browsers: ['Chrome', 'Firefox']
}
});
```
### Contributing

@@ -128,2 +145,3 @@

* 1.2.1 Allow browser configuration by browsers array
* 1.2.0 Work around Karma bug to support `console.log` output among test cases as they run.

@@ -130,0 +148,0 @@ * 1.1.2 Don't fail when the test suite run is empty.

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