@salutejs/scenario
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -27,3 +27,8 @@ "use strict"; | ||
function createMatchers() { | ||
var intent = function (expected) { return function (req) { var _a; return ((_a = req.inference) === null || _a === void 0 ? void 0 : _a.variants[0].intent.path) === expected; }; }; | ||
var intent = function (expected) { return function (req) { | ||
var _a, _b; | ||
if (!((_a = req.inference) === null || _a === void 0 ? void 0 : _a.variants.length)) | ||
return false; | ||
return ((_b = req.inference) === null || _b === void 0 ? void 0 : _b.variants[0].intent.path) === expected; | ||
}; }; | ||
var text = function (expected) { return function (req) { | ||
@@ -30,0 +35,0 @@ var actual = req.message.original_text; |
{ | ||
"name": "@salutejs/scenario", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Tiny helpers to make scenario for Salute family", | ||
@@ -35,3 +35,3 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>", | ||
}, | ||
"gitHead": "7d9fc0a42be8e6b92cf2ef53cad9bdcff8d4bbc0" | ||
"gitHead": "f618bff07b2d90a7d99064012c3924178c1b29a0" | ||
} |
Sorry, the diff of this file is not supported yet
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
96565
538