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

browserstack-capabilities

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserstack-capabilities - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

6

lib/aliases.js
var aliases = {
ff: "Firefox",
ch: "Chrome",
ie: "IE",
ff: "firefox",
ch: "chrome",
ie: "ie",
win: "Windows",

@@ -6,0 +6,0 @@ mac: "OS X",

{
"name": "browserstack-capabilities",
"version": "0.2.2",
"version": "0.3.0",
"description": "An easier way to generate multiple capabilities based on JSON filters.",

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

@@ -11,3 +11,3 @@ var expect = require("chai").expect;

os: 'ANY',
browserName: 'Chrome',
browserName: 'chrome',
os_version: 'ANY',

@@ -26,3 +26,3 @@ version: 'ANY',

os: 'ANY',
browserName: 'Chrome',
browserName: 'chrome',
os_version: 'ANY',

@@ -37,7 +37,7 @@ version: '42',

it("should parse browser name and version without alias", function() {
var generatedCapabilities = bsCaps.parse("Chrome:42");
var generatedCapabilities = bsCaps.parse("chrome:42");
var expectedCapabilities = {
os: 'ANY',
browserName: 'Chrome',
browserName: 'chrome',
os_version: 'ANY',

@@ -58,3 +58,3 @@ version: '42',

os: 'Windows',
browserName: 'Chrome',
browserName: 'chrome',
os_version: 'ANY',

@@ -73,3 +73,3 @@ version: 'ANY',

os: 'Windows',
browserName: 'Chrome',
browserName: 'chrome',
os_version: 'ANY',

@@ -88,3 +88,3 @@ version: '42',

os: 'Windows',
browserName: 'Chrome',
browserName: 'chrome',
os_version: '10',

@@ -103,3 +103,3 @@ version: 'ANY',

os: 'Windows',
browserName: 'Chrome',
browserName: 'chrome',
os_version: '10',

@@ -114,7 +114,7 @@ version: '42',

it("should parse browser name/version and os/version without aliases", function() {
var generatedCapabilities = bsCaps.parse("Chrome:42@Windows:XP");
var generatedCapabilities = bsCaps.parse("chrome:42@Windows:XP");
var expectedCapabilities = {
os: 'Windows',
browserName: 'Chrome',
browserName: 'chrome',
os_version: 'XP',

@@ -134,3 +134,3 @@ version: '42',

os: 'ANY',
browserName: 'Chrome',
browserName: 'chrome',
os_version: 'ANY',

@@ -141,3 +141,3 @@ version: 'ANY',

os: 'ANY',
browserName: 'Firefox',
browserName: 'firefox',
os_version: 'ANY',

@@ -144,0 +144,0 @@ version: 'ANY',

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