mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Restored the common.js indentation
This commit is contained in:
parent
f5dacb4e42
commit
58a2d1f34c
@ -22,16 +22,16 @@ export function makeTxnId() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isTxnId(txnId) {
|
export function isTxnId(txnId) {
|
||||||
return txnId.startsWith("t") && txnId.length === 15;
|
return txnId.startsWith("t") && txnId.length === 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tests() {
|
export function tests() {
|
||||||
return {
|
return {
|
||||||
"isTxnId succeeds on result of makeTxnId": assert => {
|
"isTxnId succeeds on result of makeTxnId": assert => {
|
||||||
assert(isTxnId(makeTxnId()));
|
assert(isTxnId(makeTxnId()));
|
||||||
},
|
},
|
||||||
"isTxnId fails on event id": assert => {
|
"isTxnId fails on event id": assert => {
|
||||||
assert(!isTxnId("$yS_n5n3cIO2aTtek0_2ZSlv-7g4YYR2zKrk2mFCW_rm"));
|
assert(!isTxnId("$yS_n5n3cIO2aTtek0_2ZSlv-7g4YYR2zKrk2mFCW_rm"));
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user