18 lines
		
	
	
		
			505 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			505 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
 | |
| var request = require('supertest')
 | |
|   , app = require('../../examples/ejs');
 | |
| 
 | |
| describe('ejs', function(){
 | |
|   describe('GET /', function(){
 | |
|     it('should respond with html', function(done){
 | |
|       request(app)
 | |
|       .get('/')
 | |
|       .expect('Content-Type', 'text/html; charset=utf-8')
 | |
|       .expect(/<li>tobi <tobi@learnboost\.com><\/li>/)
 | |
|       .expect(/<li>loki <loki@learnboost\.com><\/li>/)
 | |
|       .expect(/<li>jane <jane@learnboost\.com><\/li>/)
 | |
|       .expect(200, done)
 | |
|     })
 | |
|   })
 | |
| })
 |