This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('FormTools', () => { | |
| const formElement = document.createElement('form'); | |
| formElement.innerHTML = ` | |
| <input type="text" name="username" value="test user"/> | |
| <input type="password" name="password" value="test pass" /> | |
| `; | |
| const mockInitialData = { | |
| username: '', | |
| password: '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const adminAction = () => { | |
| const action = askForAdminAction (); | |
| if (action === "create"){ | |
| for(i = 0; i<= 15; i++) { | |
| showFlights(); | |
| const newFlight = {}; | |
| newFlight.to = prompt("To:"); | |
| newFlight.from = prompt("From:"); | |
| newFlight.cost = +prompt("Cost:"); | |
| newFlight.scale = +prompt("Scale (true/false):"); |