mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 10:00:17 +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
20 lines
645 B
JavaScript
20 lines
645 B
JavaScript
/**
|
|
* Tests ensuring production code does not contain leftover diagnostic console.log statements.
|
|
*/
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
describe('No leftover diagnostic console.log statements', () => {
|
|
const rootDir = path.resolve(__dirname, '..');
|
|
const filesToCheck = ['src/main.js', 'src/renderer.js'];
|
|
|
|
filesToCheck.forEach((relativePath) => {
|
|
test(`${relativePath} has no console.log statements`, () => {
|
|
const content = fs.readFileSync(path.join(rootDir, relativePath), 'utf8');
|
|
const matches = content.match(/console\.log\(/g) || [];
|
|
expect(matches).toHaveLength(0);
|
|
});
|
|
});
|
|
});
|