Files
outline/server/__mocks__/franc.js
Tom Moor 3f3a70d996 feat: Adjust line-height depending on script (#10565)
* migration

* Auto detect language and adjust line-height accordingly

* Remove accidental commit

* Remove unneccessary adjustment

* test

* mock
2025-11-08 11:47:51 -05:00

11 lines
272 B
JavaScript

// Mock for franc language detection library
const franc = jest.fn((text) => {
// Return 'eng' (English) by default, or 'und' (undetermined) for empty text
if (!text || text.trim().length === 0) {
return "und";
}
return "eng";
});
module.exports = { franc };