0.6.1 • Published 2 years ago

@minepress/minexpect v0.6.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
2 years ago

MinExpect

Assert library made for Minepress

This library is based on retry-and-timeout logic

await new Expect(
    this.lastMsg,  // Initial Value
    (retry) => { // Register Event Handler
        // Here the event handler  must call the retry method to well
        // Retry the check
        this.bot?.on("messagestr", retry);
    },
    (retry) => { // Dispose Event Handler
        // This is called after the check has been successful
        // it is expected to remove the event handler
        this.bot?.removeListener("messagestr", retry)
    }).toBe("<Bot> Test")
0.5.3

2 years ago

0.5.0

2 years ago

0.6.1

2 years ago

0.5.2

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.1.0

2 years ago

0.0.1-1

2 years ago

0.0.1-alpha

2 years ago