📌  相关文章
📜  const { message } = new assert.AssertionError({ 实际:1,预期:2,运算符:'strictEqual' }); - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:16.178000             🧑  作者: Mango

代码示例1
const { bar } = foo; // where foo = { bar:5, baz:2, bat: 10 };
/* This creates a constant with the name 'bar', which has a value of 5 */
const { message } = new assert.AssertionError({
  actual: 1,
  expected: 2,
  operator: 'strictEqual'
});