forked from MapComplete/MapComplete
		
	Stabilize personal theme, textfield now correctly appears if it is an option in the freeform too
This commit is contained in:
		
							parent
							
								
									79fc3f54e5
								
							
						
					
					
						commit
						416a76ae4f
					
				
					 22 changed files with 278 additions and 149 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| 
 | ||||
| export default class T { | ||||
| 
 | ||||
|     constructor(tests: [string, () => void ][]) { | ||||
|     constructor(testsuite: string, tests: [string, () => void ][]) { | ||||
|         let failures : string []= []; | ||||
|         for (const [name, test] of tests) { | ||||
|             try { | ||||
|  | @ -11,11 +12,17 @@ export default class T { | |||
|             } | ||||
|         } | ||||
|         if (failures.length == 0) { | ||||
|             console.log("All tests done!") | ||||
|             console.log(`All tests of ${testsuite} done!`) | ||||
|         } else { | ||||
|             console.warn(failures.length, "tests failed :(") | ||||
|             console.warn(failures.length, `tests of ${testsuite} failed :(`) | ||||
|             console.log("Failed tests: ", failures.join(",")) | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     static assertContains(needle: string, actual: string){ | ||||
|         if(actual.indexOf(needle) < 0){ | ||||
|             throw `The substring ${needle} was not found` | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue