init
This commit is contained in:
		
							
								
								
									
										30
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								index.html
									
									
									
									
									
								
							| @@ -0,0 +1,30 @@ | |||||||
|  | <!DOCTYPE html> | ||||||
|  | <head> | ||||||
|  |     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.css"> | ||||||
|  |   <!-- add mocha framework code --> | ||||||
|  |   <script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/3.2.0/mocha.js"></script> | ||||||
|  |   <script> | ||||||
|  |     mocha.setup('bdd'); // minimal setup | ||||||
|  |   </script> | ||||||
|  |   <!-- add chai --> | ||||||
|  |   <script src="https://cdnjs.cloudflare.com/ajax/libs/chai/3.5.0/chai.js"></script> | ||||||
|  |   <script> | ||||||
|  |     // chai has a lot of stuff, let's make assert global | ||||||
|  |     let assert = chai.assert; | ||||||
|  |   </script> | ||||||
|  |  | ||||||
|  | </head> | ||||||
|  |  | ||||||
|  | <body> | ||||||
|  |     <script> | ||||||
|  |         let code = { | ||||||
|  |             "49": "Germany", | ||||||
|  |             "+49": "Germany number", | ||||||
|  |             "1": "US", | ||||||
|  |             "+1": "US number" | ||||||
|  |         }; | ||||||
|  |         for(key in code){ | ||||||
|  |             alert(key); | ||||||
|  |         } | ||||||
|  |     </script> | ||||||
|  | </body> | ||||||
		Reference in New Issue
	
	Block a user