style: fmt examples

This commit is contained in:
Dmitriy Pleshevskiy 2021-08-23 11:40:13 +03:00
parent a91bc95bd5
commit 9d14ed5e84

View file

@ -13,16 +13,16 @@ async function main() {
const sm = smbTurnstile.build(locked); const sm = smbTurnstile.build(locked);
function logCurrentState() { function logCurrentState() {
console.log('current state', JSON.stringify(sm.currentState.name)) console.log("current state", JSON.stringify(sm.currentState.name));
} }
logCurrentState() logCurrentState();
await sm.trigger('coin', {}) await sm.trigger("coin", {});
logCurrentState() logCurrentState();
await sm.trigger('push', {}) await sm.trigger("push", {});
logCurrentState() logCurrentState();
await sm.trigger('push', {}) await sm.trigger("push", {});
logCurrentState() logCurrentState();
} }
if (import.meta.main) { if (import.meta.main) {