Comparing version 3.2.4 to 3.2.5
@@ -154,3 +154,3 @@ "use strict"; | ||
function generateAssertionName(_a, actual, formatAssertion) { | ||
var check = _a.check, equals = _a.equals, notEquals = _a.notEquals, contains = _a.contains, notContains = _a.notContains, matches = _a.matches, falsy = _a.falsy, greater = _a.greater, lesser = _a.lesser, JSONSchema = _a.JSONSchema; | ||
var check = _a.check, equals = _a.equals, notEquals = _a.notEquals, contains = _a.contains, notContains = _a.notContains, matches = _a.matches, falsy = _a.falsy, greater = _a.greater, lesser = _a.lesser, JSONSchema = _a.JSONSchema, JSONContains = _a.JSONContains; | ||
if (equals != null) { | ||
@@ -183,2 +183,5 @@ return formatAssertion(check, 'Equals', equals, actual); | ||
} | ||
else if (JSONContains != null) { | ||
return formatAssertion(check, 'JSON Contains', JSONContains, actual); | ||
} | ||
else { | ||
@@ -185,0 +188,0 @@ return formatAssertion(check, 'Exists', null, actual); |
{ | ||
"name": "loadmill", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "A node.js module for running load tests and functional tests on loadmill.com", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -167,3 +167,3 @@ import * as fs from "fs"; | ||
function generateAssertionName( | ||
{ check, equals, notEquals, contains, notContains, matches, falsy, greater, lesser, JSONSchema }: any, | ||
{ check, equals, notEquals, contains, notContains, matches, falsy, greater, lesser, JSONSchema, JSONContains }: any, | ||
actual: any, | ||
@@ -190,2 +190,4 @@ formatAssertion: Function | ||
return formatAssertion(check, 'JSON Schema', JSONSchema, actual); | ||
} else if (JSONContains != null) { | ||
return formatAssertion(check, 'JSON Contains', JSONContains, actual); | ||
} else { | ||
@@ -192,0 +194,0 @@ return formatAssertion(check, 'Exists', null, actual); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142579
2827