let { privateProperties } = grip.preview;
strictEqual(
privateProperties.length,
2, "There is 2 private properties in the grip preview"
);
let [password, salt] = privateProperties;
strictEqual(
password.name, "#password", "Got expected name for #password private property in preview"
);
deepEqual(
password.descriptor,
{
configurable: true,
enumerable: false,
writable: true,
value: "p4$$w0rD",
}, "Got expected property descriptor for #password in preview"
);
strictEqual(
salt.name, "#salt", "Got expected name for #salt private property in preview"
);
deepEqual(
salt.descriptor,
{
configurable: true,
enumerable: false,
writable: true,
value: "sEcr3t",
}, "Got expected property descriptor for #salt in preview"
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.