function assertBlockStructure(
    block,
    expectedInputs,
    type = 'dynamic_text_join',
  ) {
    assert.equal(block.type, type);
    assert.equal(block.inputList.length, expectedInputs.length);
    for (let i = 0; i < expectedInputs.length; i++) {
      assert.match(block.inputList[i].name, expectedInputs[i]);
    }
  }
Asserts that the text join block has the expected inputs.
@param {!Blockly.Block} block The block to check.
@param {!Array<RegExp>} expectedInputs The expected inputs.
@type {string=} The block type expected. Defaults to 'dynamic_text_join'.