sunrise-cms/test/version.js

10 lines
342 B
JavaScript

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