style: fmt examples
This commit is contained in:
parent
a91bc95bd5
commit
9d14ed5e84
1 changed files with 8 additions and 8 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue