Description
The validation for validating the stored/persistence attributes with storesAttributes
uses reference equality when it should use normal equality (similar to how SessionAttributeValidator
works).
Steps to Reproduce
- Write a Skill Lambda that persists attributes where one of the root attributes stores another object.
e.g.
{
"field1": "value1",
"field2": {
"field3": "value3",
"field4": "value4"
}
}
- Write a test case with the SDK to validate that it stores the given attributes.
e.g.
alexaTest.test([
{
request: ...,
says: ...,
reprompts: ...,
storesAttributes: {
"field1": "value1",
"field2": {
"field3": "value3",
"field4": "value4"
}
}
}
]);
- Run test and it will fail.
Expected behavior:
Test case to pass and lenient/normal equality to be used.
Actual behavior:
Test case will fail because it uses strict/reference equality.
Environment
NodeJS-Version:
v8.12.0
TypeScript-Version:
N/A
OS:
MAC OS X