1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +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({
path: filePath,
format: 'html',
packIntoSingleFile: false,
plugins,
});

View File

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

View File

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