| 571 | }); |
| 572 | |
| 573 | const createHTMLSelect = options => { |
| 574 | const selectElement = document.createElement('select'); |
| 575 | for (const optionName of options) { |
| 576 | const option = document.createElement('option'); |
| 577 | option.setAttribute('label', optionName); |
| 578 | option.setAttribute('value', optionName); |
| 579 | selectElement.add(option); |
| 580 | } |
| 581 | return selectElement; |
| 582 | }; |
| 583 | |
| 584 | test('should be a function', function() { |
| 585 | assert.isFunction(mockP5Prototype.createSelect); |
no test coverage detected