mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +05:30
- Normalize pandoc command parsing with path.basename() to support bundled binary paths - Use bundled pandoc binary in convertWithPandoc instead of relying on PATH - Forward includeSubfolders checkbox state from renderer to main process - Add pandoc availability check before batch conversion - Re-enable Start button when batch conversion completes - Clean up obsolete dist build artifact causing test snapshot warning - Bump version to 4.4.4
22 lines
638 B
JavaScript
22 lines
638 B
JavaScript
/**
|
|
* Tests for project metadata consistency
|
|
*/
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
describe('Project version consistency', () => {
|
|
const rootDir = path.resolve(__dirname, '..');
|
|
const packageJson = JSON.parse(fs.readFileSync(path.join(rootDir, 'package.json'), 'utf8'));
|
|
const readme = fs.readFileSync(path.join(rootDir, 'README.md'), 'utf8');
|
|
|
|
test('README version matches package.json version', () => {
|
|
const version = packageJson.version;
|
|
expect(readme).toContain(`v${version}`);
|
|
});
|
|
|
|
test('README contains current version string', () => {
|
|
expect(readme).toContain('v4.4.4');
|
|
});
|
|
});
|