mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Port the unit tests from https://github.com/vercel/nft/tree/941be1cb3b9d38fbc99a8a6f07af568a64ed0f12/test/unit
11 lines
337 B
JavaScript
11 lines
337 B
JavaScript
const { readFileSync } = require('fs')
|
|
const { join } = require('path')
|
|
|
|
const { Status } = require('./constants')
|
|
|
|
console.log(Status.OK)
|
|
// prevent analyzer from `readFileSync`
|
|
const filename = ['constants', 'js', 'map']
|
|
const cm = readFileSync(join(__dirname, filename.join('.'))).toString('utf8')
|
|
console.log(JSON.parse(cm).version)
|