babel-plugin-tester
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -236,3 +236,3 @@ 'use strict'; | ||
} else if (error) { | ||
assertError(error, result); | ||
assertError(result, error); | ||
} else if (output) { | ||
@@ -280,3 +280,3 @@ _assert2.default.equal(result, output, 'Output is incorrect.'); | ||
_assert2.default.equal(output, actual, 'actual output does not match output.js'); | ||
_assert2.default.equal(actual, output, 'actual output does not match output.js'); | ||
}); | ||
@@ -355,3 +355,3 @@ }); | ||
// eslint-disable-next-line complexity | ||
function assertError(error, result) { | ||
function assertError(result, error) { | ||
if (typeof error === 'function') { | ||
@@ -358,0 +358,0 @@ if (!(result instanceof error || error(result) === true)) { |
{ | ||
"name": "babel-plugin-tester", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Utilities for testing babel plugins", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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