mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-06 22:46:29 +02:00
Fixed tests
This commit is contained in:
parent
e012b927dc
commit
a37005446a
@ -9,7 +9,14 @@ rsync -a "$ROOT_DIR/build/locales/" "$BUILD_DIR/locales/"
|
|||||||
mkdir -p "$BUILD_DIR/data"
|
mkdir -p "$BUILD_DIR/data"
|
||||||
|
|
||||||
if [[ $TEST_FILE == "" ]]; then
|
if [[ $TEST_FILE == "" ]]; then
|
||||||
(cd "$ROOT_DIR" && npm test tests-build/synchronizer.js tests-build/encryption.js tests-build/ArrayUtils.js tests-build/models_Setting.js tests-build/models_Note.js tests-build/models_Folder.js tests-build/services_InteropService.js)
|
(cd "$ROOT_DIR" && npm test tests-build/synchronizer.js)
|
||||||
|
(cd "$ROOT_DIR" && npm test tests-build/encryption.js
|
||||||
|
(cd "$ROOT_DIR" && npm test tests-build/ArrayUtils.js)
|
||||||
|
(cd "$ROOT_DIR" && npm test tests-build/models_Setting.js)
|
||||||
|
(cd "$ROOT_DIR" && npm test tests-build/models_Note.js)
|
||||||
|
(cd "$ROOT_DIR" && npm test tests-build/models_Folder.js)
|
||||||
|
(cd "$ROOT_DIR" && npm test tests-build/services_InteropService.js)
|
||||||
|
(cd "$ROOT_DIR" && npm test tests-build/HtmlToMd.js)
|
||||||
else
|
else
|
||||||
(cd "$ROOT_DIR" && npm test tests-build/$TEST_FILE.js)
|
(cd "$ROOT_DIR" && npm test tests-build/$TEST_FILE.js)
|
||||||
fi
|
fi
|
@ -54,7 +54,7 @@ describe('HtmlToMd', function() {
|
|||||||
console.info('');
|
console.info('');
|
||||||
|
|
||||||
expect(false).toBe(true);
|
expect(false).toBe(true);
|
||||||
process.exit(1);
|
return;
|
||||||
} else {
|
} else {
|
||||||
expect(true).toBe(true)
|
expect(true).toBe(true)
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -134,7 +134,7 @@ function shimInit() {
|
|||||||
|
|
||||||
if (note.body && position) newBody.push(note.body.substr(0, position));
|
if (note.body && position) newBody.push(note.body.substr(0, position));
|
||||||
newBody.push(Resource.markdownTag(resource));
|
newBody.push(Resource.markdownTag(resource));
|
||||||
newBody.push(note.body.substr(position));
|
if (note.body) newBody.push(note.body.substr(position));
|
||||||
|
|
||||||
const newNote = Object.assign({}, note, {
|
const newNote = Object.assign({}, note, {
|
||||||
body: newBody.join('\n\n'),
|
body: newBody.join('\n\n'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user