sunrise-cms/test/version.js

11 lines
402 B
JavaScript

import assert from 'node:assert';
import fs from 'node:fs';
import { describe, it } from 'node:test';
import { version } from '../version.js';
await describe('version', async () => {
await it('has a version that matches the package.json', () => {
const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'));
assert.strictEqual(version, packageJSON.version);
});
});