u
This commit is contained in:
@@ -174,8 +174,8 @@ async function run() {
|
||||
() => store.article.getBySku(googleAuthId, artOnlySub.sku),
|
||||
/Article not found/
|
||||
);
|
||||
// tombstone for artOnlySub exists
|
||||
const t1 = provider.db.prepare("SELECT * FROM posterminaltombstone WHERE posterminal_id = ? AND entity_type = 'article' AND entity_id = ?").all(posTerminal.id, artOnlySub.id);
|
||||
// obituary for artOnlySub exists
|
||||
const t1 = provider.db.prepare("SELECT * FROM posterminalobituary WHERE posterminal_id = ? AND entity_type = 'article' AND entity_id = ?").all(posTerminal.id, artOnlySub.id);
|
||||
assert.equal(t1.length, 1);
|
||||
|
||||
// artParent and its child artChild: both deleted
|
||||
@@ -187,8 +187,8 @@ async function run() {
|
||||
() => store.article.getBySku(googleAuthId, artChild.article.sku),
|
||||
/Article not found/
|
||||
);
|
||||
const tParent = provider.db.prepare("SELECT * FROM posterminaltombstone WHERE posterminal_id = ? AND entity_type = 'article' AND entity_id = ?").all(posTerminal.id, artParent.id);
|
||||
const tChild = provider.db.prepare("SELECT * FROM posterminaltombstone WHERE posterminal_id = ? AND entity_type = 'article' AND entity_id = ?").all(posTerminal.id, artChild.article.id);
|
||||
const tParent = provider.db.prepare("SELECT * FROM posterminalobituary WHERE posterminal_id = ? AND entity_type = 'article' AND entity_id = ?").all(posTerminal.id, artParent.id);
|
||||
const tChild = provider.db.prepare("SELECT * FROM posterminalobituary WHERE posterminal_id = ? AND entity_type = 'article' AND entity_id = ?").all(posTerminal.id, artChild.article.id);
|
||||
assert.equal(tParent.length, 1);
|
||||
assert.equal(tChild.length, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user