Socket
Socket
Sign inDemoInstall

nemo-locatex

Package Overview
Dependencies
92
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.2 to 1.0.1

CHANGELOG.md

4

index.js

@@ -18,3 +18,3 @@ /*───────────────────────────────────────────────────────────────────────────*\

module.exports = {
'setup': function (config, nemo, callback) {
'setup': function (nemo, callback) {
nemo.locatex = function locatex(_locator) {

@@ -31,4 +31,4 @@ var locale = (nemo.props && nemo.props.locale) ? nemo.props.locale : 'default',

};
callback(null, config, nemo);
callback(null);
}
};
{
"name": "nemo-locatex",
"version": "0.4.2",
"version": "1.0.1",
"description": "Add Locale behavior to Nemo locators",

@@ -14,15 +14,12 @@ "main": "index.js",

},
"dependencies": {
"async": "~0.2.8"
},
"peerDependencies": {
"nemo-drivex": "^0.4.0",
"nemo": "^0.4.0"
"nemo": "^2.1.1"
},
"devDependencies": {
"mocha": "~1.10.0",
"chai": "~1.6.0",
"grunt": "~0.4.1",
"chai": "^3.5.0",
"grunt": "^1.0.1",
"grunt-contrib-jshint": "^1.0.0",
"grunt-simple-mocha": "~0.4.0",
"grunt-contrib-jshint": "~0.7.1"
"mocha": "^2.4.5",
"nemo": "^2.1.1"
},

@@ -35,2 +32,6 @@ "keywords": [

"author": "Matt Edelman",
"contributors": [
"Matt Edelman <medelman@paypal.com>",
"Gabriel Csapo <gacsapo@paypal.com>"
],
"licenses": [

@@ -37,0 +38,0 @@ {

@@ -1,2 +0,4 @@

var NemoLocateX = require("../index");
var assert = require('chai').assert;
var Nemo = require('nemo');
var Locatex = require("../index");
var returnObj = {

@@ -7,14 +9,35 @@ "driver": true,

describe("nemo-locatex ", function () {
it('should setup with nemo', function(done) {
var nemo = Nemo({
"driver": {
"browser": "phantomjs"
},
'plugins': {
'locatex': {
'module': 'path:../../index'
}
}
}, function (err) {
if (err) {
throw 'Error during Nemo setup';
}
assert.isObject(nemo, 'nemo is an object');
assert.isDefined(nemo.driver, 'driver is defined');
assert.isDefined(nemo.wd, 'wd is defined');
assert.isDefined(nemo.locatex, 'locatex is defined');
assert.isFunction(nemo.locatex, 'locatex is a function');
nemo.driver.quit();
done();
});
})
it("should get set up", function (done) {
NemoLocateX.setup({}, returnObj, function (err, config, returnObj) {
if (returnObj.locatex) {
//console.log("user", returnObj.user);
done()
} else if (err) {
done(err)
} else {
done(new Error("Didn't get drivex object back"))
}
var nemo = {};
Locatex.setup(nemo, function () {
assert.isObject(nemo, 'nemo is an object');
assert.isFunction(nemo.locatex, 'locatex is a function');
done();
})
});
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc