1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Remove code relating to revision and bag as fields

This commit is contained in:
Jeremy Ruston 2024-03-22 17:58:52 +00:00
parent 1f63bcbbd0
commit 52f76380c7

View File

@ -88,11 +88,6 @@ function runSqlStoreTests(engine) {
var getBagTiddlerResult = store.getBagTiddler("Another Tiddler","bag-alpha");
expect(typeof(getBagTiddlerResult.tiddler_id)).toBe("number");
delete getBagTiddlerResult.tiddler_id;
// these fields may eventually be removed, so don't depend on their presence
delete getBagTiddlerResult.tiddler.revision;
delete getBagTiddlerResult.tiddler.bag;
expect(getBagTiddlerResult).toEqual({ attachment_blob: null, tiddler: {title: "Another Tiddler", text: "I'm in alpha", tags: "one two three"} });
});
@ -133,11 +128,6 @@ function runSqlStoreTests(engine) {
var getRecipeTiddlerResult = store.getRecipeTiddler("Another Tiddler","recipe-rho");
expect(typeof(getRecipeTiddlerResult.tiddler_id)).toBe("number");
delete getRecipeTiddlerResult.tiddler_id;
// these fields may eventually be removed, so don't depend on their presence
delete getRecipeTiddlerResult.tiddler.revision;
delete getRecipeTiddlerResult.tiddler.bag;
expect(getRecipeTiddlerResult).toEqual({ attachment_blob: null, bag_name: "bag-beta", tiddler: {title: "Another Tiddler", text: "I'm in rho"} });
});