1
0
Fork 0

minor code coverage

This commit is contained in:
Cadence Ember 2023-08-24 17:23:32 +12:00
parent c56e92ccfb
commit 1e9e9685c5
4 changed files with 16 additions and 2 deletions

12
matrix/txnid.test.js Normal file
View file

@ -0,0 +1,12 @@
// @ts-check
const {test} = require("supertape")
const txnid = require("./txnid")
test("txnid: generates different values each run", t => {
const one = txnid.makeTxnId()
t.ok(one)
const two = txnid.makeTxnId()
t.ok(two)
t.notEqual(two, one)
})