From 52f76380c76699b6242ed3f0e8dc8b88fd86f8bd Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 22 Mar 2024 17:58:52 +0000 Subject: [PATCH] Remove code relating to revision and bag as fields --- .../modules/store/tests-sql-tiddler-store.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plugins/tiddlywiki/multiwikiserver/modules/store/tests-sql-tiddler-store.js b/plugins/tiddlywiki/multiwikiserver/modules/store/tests-sql-tiddler-store.js index 947ad425e..ae65c7fe2 100644 --- a/plugins/tiddlywiki/multiwikiserver/modules/store/tests-sql-tiddler-store.js +++ b/plugins/tiddlywiki/multiwikiserver/modules/store/tests-sql-tiddler-store.js @@ -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"} }); });