Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAustin Schaffer <austin.schaffer@ryansg.com>2019-12-17 11:45:52 -0500
committerAustin Schaffer <austin.schaffer@ryansg.com>2019-12-17 11:59:06 -0500
commit542745da8a4c3a808ad8e692e335de4e5d9e9aba (patch)
tree3a833bcf7d8aac171a4f70b16ef25cc6668a4ac9 /test
parentccfd40c64f9237d0422c4e30a90d63d82057a858 (diff)
downloadliza-542745da8a4c3a808ad8e692e335de4e5d9e9aba.tar.gz
liza-542745da8a4c3a808ad8e692e335de4e5d9e9aba.tar.bz2
liza-542745da8a4c3a808ad8e692e335de4e5d9e9aba.zip
[DEV-5312] Log quote_id along with doc_id
Diffstat (limited to 'test')
-rw-r--r--test/server/token/MongoTokenDaoTest.ts16
-rw-r--r--test/system/DeltaPublisherTest.ts1
2 files changed, 11 insertions, 6 deletions
diff --git a/test/server/token/MongoTokenDaoTest.ts b/test/server/token/MongoTokenDaoTest.ts
index 23e403e..67e3a65 100644
--- a/test/server/token/MongoTokenDaoTest.ts
+++ b/test/server/token/MongoTokenDaoTest.ts
@@ -372,6 +372,7 @@ describe( 'server.token.TokenDao', () =>
`${ns}.tok123`,
{
doc_id: did,
+ quote_id: did,
ns: ns,
token_id: 'tok123',
},
@@ -386,8 +387,9 @@ describe( 'server.token.TokenDao', () =>
null,
ns,
{
- doc_id: did,
- ns: ns,
+ doc_id: did,
+ quote_id: did,
+ ns: ns,
},
],
@@ -440,8 +442,9 @@ describe( 'server.token.TokenDao', () =>
null,
ns,
{
- doc_id: did,
- ns: ns,
+ doc_id: did,
+ quote_id: did,
+ ns: ns,
},
],
@@ -454,8 +457,9 @@ describe( 'server.token.TokenDao', () =>
null,
ns,
{
- doc_id: did,
- ns: ns,
+ doc_id: did,
+ quote_id: did,
+ ns: ns,
},
],
] ).forEach( ( [ label, tok_id, dbresult, expected, fmsg, fcontext ] ) =>
diff --git a/test/system/DeltaPublisherTest.ts b/test/system/DeltaPublisherTest.ts
index f352b0c..b0bd702 100644
--- a/test/system/DeltaPublisherTest.ts
+++ b/test/system/DeltaPublisherTest.ts
@@ -123,6 +123,7 @@ describe( 'server.DeltaPublisher', () =>
const expected = {
doc_id: meta.id,
+ quote_id: meta.id,
delta_type: delta.type,
delta_ts: delta.timestamp
}