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.
		
		
		
		
		
			
		
			
				
					
					
						
							30 lines
						
					
					
						
							526 B
						
					
					
				
			
		
		
	
	
							30 lines
						
					
					
						
							526 B
						
					
					
				| 'use strict'
 | |
| 
 | |
| const { test } = require('tap')
 | |
| const Fastify = require('fastify')
 | |
| const fastifySwagger = require('../index')
 | |
| 
 | |
| test('fastify.swagger should exist', t => {
 | |
|   t.plan(2)
 | |
|   const fastify = Fastify()
 | |
| 
 | |
|   fastify.register(fastifySwagger)
 | |
| 
 | |
|   fastify.ready(err => {
 | |
|     t.error(err)
 | |
|     t.ok(fastify.swagger)
 | |
|   })
 | |
| })
 | |
| 
 | |
| test('fastify.swaggerCSP should exist', t => {
 | |
|   t.plan(2)
 | |
|   const fastify = Fastify()
 | |
| 
 | |
|   fastify.register(fastifySwagger)
 | |
| 
 | |
|   fastify.ready(err => {
 | |
|     t.error(err)
 | |
|     t.ok(fastify.swaggerCSP)
 | |
|   })
 | |
| })
 |