You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							25 lines
						
					
					
						
							321 B
						
					
					
				
			
		
		
	
	
							25 lines
						
					
					
						
							321 B
						
					
					
				| 'use strict'
 | |
| 
 | |
| const t = require('tap')
 | |
| const boot = require('..')
 | |
| 
 | |
| t.plan(2)
 | |
| 
 | |
| const server = {}
 | |
| 
 | |
| const app = boot(server, {
 | |
|   autostart: false
 | |
| })
 | |
| app.override = function () {
 | |
|   throw Error('catch it')
 | |
| }
 | |
| 
 | |
| app
 | |
|   .use(function () {})
 | |
|   .start()
 | |
| 
 | |
| app.ready(function (err) {
 | |
|   t.type(err, Error)
 | |
|   t.match(err, /catch it/)
 | |
| })
 |