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

testable-utils

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testable-utils - npm Package Compare versions

Comparing version 0.2.12 to 0.3.1

34

lib/wdio-commands.js

@@ -9,15 +9,15 @@ const _ = require('lodash');

if (isWdioContext(browser)) {
browser.addCommand('testableLogTrace', function async() {
browser.addCommand('testableLogTrace', function() {
return log.trace.apply(log, arguments);
});
browser.addCommand('testableLogDebug', function async() {
browser.addCommand('testableLogDebug', function() {
return log.debug.apply(log, arguments);
});
browser.addCommand('testableLogInfo', function async() {
browser.addCommand('testableLogInfo', function() {
return log.info.apply(log, arguments);
});
browser.addCommand('testableLogError', function async() {
browser.addCommand('testableLogError', function() {
return log.error.apply(log, arguments);
});
browser.addCommand('testableLogFatal', function async() {
browser.addCommand('testableLogFatal', function() {
return log.fatal.apply(log, arguments);

@@ -30,9 +30,9 @@ });

if (isWdioContext(browser)) {
browser.addCommand('testableCsvGet', function async(name, index) {
browser.addCommand('testableCsvGet', function(name, index) {
return csv.open(name).get(index);
});
browser.addCommand('testableCsvRandom', function async(name) {
browser.addCommand('testableCsvRandom', function(name) {
return csv.open(name).random();
});
browser.addCommand('testableCsvNext', function async(name, options) {
browser.addCommand('testableCsvNext', function(name, options) {
return csv.open(name).next(options);

@@ -87,18 +87,18 @@ });

});
browser.addCommand('testableTiming', function async(result) {
browser.addCommand('testableTiming', function(result) {
const args = Array.prototype.slice.call(arguments, 1);
return result.timing.apply(result, args);
});
browser.addCommand('testableCounter', function async(result) {
browser.addCommand('testableCounter', function(result) {
const args = Array.prototype.slice.call(arguments, 1);
return result.counter.apply(result, args);
});
browser.addCommand('testableHistogram', function async(result) {
browser.addCommand('testableHistogram', function(result) {
const args = Array.prototype.slice.call(arguments, 1);
return result.histogram.apply(result, args);
});
browser.addCommand('testableGetMetric', function async() {
browser.addCommand('testableGetMetric', function() {
return results.get.apply(results, arguments);
});
browser.addCommand('testableWaitForValue', function async(options) {
browser.addCommand('testableWaitForValue', function(options) {
return results.waitForValue(options).catch(function(err) {

@@ -108,3 +108,3 @@ throw new Error(err);

});
browser.addCommand('testableWaitForCondition', function async(options) {
browser.addCommand('testableWaitForCondition', function(options) {
return results.waitForCondition(options).catch(function(err) {

@@ -132,3 +132,3 @@ throw new Error(err);

if (isWdioContext(browser)) {
browser.addCommand('testableStopwatch', function async(code, metricName, resource) {
browser.addCommand('testableStopwatch', function(code, metricName, resource) {
return stopwatch(code, metricName, resource);

@@ -141,3 +141,3 @@ });

if (isWdioContext(browser)) {
browser.addCommand('testableWaitForEvent', function async(eventName, timeout, defaultVal) {
browser.addCommand('testableWaitForEvent', function(eventName, timeout, defaultVal) {
if (doNotWait)

@@ -167,3 +167,3 @@ return Promise.resolve(defaultVal);

});
browser.addCommand('testableWaitForFinish', function async() {
browser.addCommand('testableWaitForFinish', function() {
return waitForFinish();

@@ -170,0 +170,0 @@ });

{
"name": "testable-utils",
"version": "0.2.12",
"version": "0.3.1",
"description": "Utilities for Testable scripts",

@@ -5,0 +5,0 @@ "author": "Avi Stramer",

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