1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-10-31 00:07:48 +02:00

Tools: Fixed tests

This commit is contained in:
Laurent Cozic
2021-11-19 11:47:06 +00:00
parent de50010b15
commit a03ef8d18a
3 changed files with 3 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ describe('interop/InteropService_Exporter_Html', function() {
await service.export({ await service.export({
path: filePath, path: filePath,
format: 'html', format: 'html',
packIntoSingleFile: false,
plugins, plugins,
}); });

View File

@@ -32,7 +32,7 @@ export default class InteropService_Exporter_Html extends InteropService_Exporte
if (this.metadata().target === 'file') { if (this.metadata().target === 'file') {
this.destDir_ = dirname(path); this.destDir_ = dirname(path);
this.filePath_ = path; this.filePath_ = path;
this.packIntoSingleFile_ = true; this.packIntoSingleFile_ = 'packIntoSingleFile' in options ? options.packIntoSingleFile : true;
} else { } else {
this.destDir_ = path; this.destDir_ = path;
this.filePath_ = null; this.filePath_ = null;

View File

@@ -97,6 +97,7 @@ export interface ExportOptions {
includeConflicts?: boolean; includeConflicts?: boolean;
plugins?: PluginStates; plugins?: PluginStates;
customCss?: string; customCss?: string;
packIntoSingleFile?: boolean;
} }
export interface ImportExportResult { export interface ImportExportResult {