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

gemini-express

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemini-express - npm Package Compare versions

Comparing version 0.9.2 to 0.13.0

README.md.orig

7

lib/plugin.js
var Server = require('./server');
var Q = require('q');
var _ = require('lodash');

@@ -11,3 +12,7 @@ module.exports = function(gemini, opts) {

server.start(opts, function(rootUrl) {
gemini.config.rootUrl = rootUrl;
_.forEach(gemini.config._browsers, function(browser) {
browser.rootUrl = rootUrl;
});
deferred.resolve();

@@ -14,0 +19,0 @@ });

4

package.json
{
"name": "gemini-express",
"version": "0.9.2",
"version": "0.13.0",
"description": "Plugin for starting up Express when running tests with Gemini",

@@ -12,2 +12,3 @@ "repository": "https://github.com/Saulis/gemini-express/",

"gemini",
"gemini-plugin",
"express",

@@ -23,2 +24,3 @@ "testing"

"http-close": "0.0.2",
"lodash": "^3.10.1",
"q": "^1.2.0"

@@ -25,0 +27,0 @@ },

@@ -6,4 +6,4 @@ # gemini-express

## Notes
Requires a version of gemini that supports plugin loading. See https://github.com/bem/gemini/pull/127
## Requirements
Works with [gemini](https://github.com/gemini-testing/gemini) [v0.13.4](https://github.com/gemini-testing/gemini/releases/tag/v0.13.4) or later.

@@ -19,8 +19,9 @@ ## Installation

```yml
system:
plugins:
express:
root: /home/root
port: 12345
```
plugins:
express:
root: /home/root
port: 12345
```

@@ -27,0 +28,0 @@

@@ -77,3 +77,3 @@ var expect = require('chai').expect;

it('should set rootUrl', function() {
it('should inject rootUrl to browsers', function() {
server.start = function(opts, cb) {

@@ -83,6 +83,8 @@ cb('http://foo.bar');

gemini.config._browsers = {chrome: {}, firefox: {}};
init({});
startRunner();
expect(gemini.config.rootUrl).to.equal('http://foo.bar');
expect(gemini.config._browsers.chrome.rootUrl).to.equal('http://foo.bar');
expect(gemini.config._browsers.firefox.rootUrl).to.equal('http://foo.bar');
});

@@ -89,0 +91,0 @@

Sorry, the diff of this file is not supported yet

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