{"size": 710, "ext": "js", "max_stars_repo_path": "plugins/dev-create/templates/block/template/test/index.js", "max_stars_repo_name": "michiboo/blockly-samples", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "plugins/dev-create/templates/block/template/test/index.js", "max_issues_repo_name": "michiboo/blockly-samples", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "plugins/dev-create/templates/block/template/test/index.js", "max_forks_repo_name": "michiboo/blockly-samples", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.5151515152, "max_line_length": 69, "alphanum_fraction": 0.6507042254}
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @fileoverview Block test.
 */

import * as Blockly from 'blockly';
import {addGUIControls} from '@blockly/dev-tools';
import '../src/index';

// TODO: Edit list of blocks.
const allBlocks = ['block_template'];

/**
 * Test page startup, sets up Blockly.
 */
function start() {
  const defaultOptions = {
    toolbox: `<xml xmlns="https://developers.google.com/blockly/xml">
      ${allBlocks.map((b) => `<block type="${b}"></block>`)}
    </xml>`,
  };
  addGUIControls((options) => {
    return Blockly.inject('blocklyDiv', options);
  }, defaultOptions);
}

document.addEventListener('DOMContentLoaded', start);
