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.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							406 B
						
					
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							406 B
						
					
					
				'use strict'
 | 
						|
 | 
						|
const t = require('tap')
 | 
						|
const test = t.test
 | 
						|
const fp = require('../plugin')
 | 
						|
 | 
						|
test('anonymous function should be named mu1tip1e.composite.test', t => {
 | 
						|
  t.plan(2)
 | 
						|
 | 
						|
  const fn = fp((fastify, opts, next) => {
 | 
						|
    next()
 | 
						|
  })
 | 
						|
 | 
						|
  t.equal(fn[Symbol.for('plugin-meta')].name, 'mu1tip1e.composite.test-auto-0')
 | 
						|
  t.equal(fn[Symbol.for('fastify.display-name')], 'mu1tip1e.composite.test-auto-0')
 | 
						|
})
 |