add hw2
This commit is contained in:
		
							
								
								
									
										15
									
								
								node_modules/pino/test/internals/version.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								node_modules/pino/test/internals/version.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| 'use strict' | ||||
|  | ||||
| const fs = require('fs') | ||||
| const path = require('path') | ||||
| const t = require('tap') | ||||
| const test = t.test | ||||
| const pino = require('../..')() | ||||
|  | ||||
| test('should be the same as package.json', t => { | ||||
|   t.plan(1) | ||||
|  | ||||
|   const json = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json')).toString('utf8')) | ||||
|  | ||||
|   t.equal(pino.version, json.version) | ||||
| }) | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik