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:
parent
1f63bcbbd0
commit
52f76380c7
@ -88,11 +88,6 @@ function runSqlStoreTests(engine) {
|
|||||||
var getBagTiddlerResult = store.getBagTiddler("Another Tiddler","bag-alpha");
|
var getBagTiddlerResult = store.getBagTiddler("Another Tiddler","bag-alpha");
|
||||||
expect(typeof(getBagTiddlerResult.tiddler_id)).toBe("number");
|
expect(typeof(getBagTiddlerResult.tiddler_id)).toBe("number");
|
||||||
delete getBagTiddlerResult.tiddler_id;
|
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"} });
|
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");
|
var getRecipeTiddlerResult = store.getRecipeTiddler("Another Tiddler","recipe-rho");
|
||||||
expect(typeof(getRecipeTiddlerResult.tiddler_id)).toBe("number");
|
expect(typeof(getRecipeTiddlerResult.tiddler_id)).toBe("number");
|
||||||
delete getRecipeTiddlerResult.tiddler_id;
|
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"} });
|
expect(getRecipeTiddlerResult).toEqual({ attachment_blob: null, bag_name: "bag-beta", tiddler: {title: "Another Tiddler", text: "I'm in rho"} });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user