• File: version.test.js
  • Full Path: /var/www/nodejs/simo_meps_file_script/node_modules/pino/test/internals/version.test.js
  • Date Modified: 02/28/2025 8:55 PM
  • File size: 371 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict'

const fs = require('node:fs')
const path = require('node: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)
})