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.
		
		
		
		
		
			
		
			
				
					14 lines
				
				284 B
			
		
		
			
		
	
	
					14 lines
				
				284 B
			| 
											3 years ago
										 | import t from 'tap' | ||
|  | import Fastify from '../../fastify.js' | ||
|  | 
 | ||
|  | t.test('esm support', async t => { | ||
|  |   const fastify = Fastify() | ||
|  | 
 | ||
|  |   fastify.register(import('./plugin.mjs'), { foo: 'bar' }) | ||
|  |   fastify.register(import('./other.mjs')) | ||
|  | 
 | ||
|  |   await fastify.ready() | ||
|  | 
 | ||
|  |   t.equal(fastify.foo, 'bar') | ||
|  | }) |