2121 <a href =" https://nest.land/package/merlin " >
2222 <img src="https://nest.land/badge.svg" />
2323 </a >
24+ <a href =" https://deno.land/x/merlin " >
25+ <img src="https://img.shields.io/badge/available%20on-deno.land/x-blue.svg?style=flat&logo=deno"/>
26+ </a >
2427</p >
2528
2629## Merlin
@@ -59,6 +62,8 @@ Merlin is a [Jest](https://jestjs.io/en/)-inspired testing framework for deno.
5962- ` isFunction(label: string, config) ` evaluates if a data is a function
6063- ` isSymbol(label: string, config) ` evaluates if a data is a symbol
6164- ` isUndefined(label: string, config) ` evaluates if a data is undefined
65+ - ` isString(label: string, config) ` evaluates if a data is string
66+ - ` isNumber(label: string, config) ` evaluates if a data is number
6267- ` testSame(label: string, config) ` evaluates if two values are strictly the same
6368- ` testGreaterOrEqual(label: string, config) ` evaluates whether the expected data is greater than or equal to another
6469- ` testGreater(label: string, config) ` evaluates whether the expected data is greater than another
@@ -68,19 +73,20 @@ Merlin is a [Jest](https://jestjs.io/en/)-inspired testing framework for deno.
6873- ` testFloat(label: string, config) ` evaluates if two decimal numbers are equal
6974- ` testThrows(label: string, config) ` expect it throws an error
7075- ` testThrowsSync(label: string, config) ` expect it throws an async error
76+ - ` haveProperty(label: string, config) ` expect an object to contain the properties in its value
7177
72- ### Install Merlin
78+ #### Statics
7379
74- install merlin-cli (optional)
80+ - ` Merlin.Error(msg?: string) ` force to throw an error
81+ - ` Merlin.Unimplemented(msg?: string) ` Use this to throw a method not implemented error
82+ - ` Merlin.Unreachable() ` Use this to throw an Unreachable method error
7583
76- ``` sh
77- $ deno install --allow-run -n merlin http://denopkg.com/crewdevio/merlin/cli.ts
78- ```
84+ ### Install Merlin
7985
80- or using [ Trex ] ( https://github.com/crewdevio/Trex ) package manager.
86+ install merlin-cli (optional)
8187
8288``` sh
83- $ trex getTool merlin- cli
89+ deno install --allow-run -n merlin https://deno.land/x/merlin/ cli.ts
8490```
8591
8692### Mirrors
@@ -126,10 +132,16 @@ test.testEqual("two plus two is four", {
126132});
127133```
128134
129- run this test in deno
135+ run this test in deno.
136+
137+ ``` sh
138+ merlin start
139+ ```
140+
141+ or
130142
131143``` sh
132- $ deno test
144+ deno test
133145```
134146
135147you should see this output on the console.
@@ -184,7 +196,7 @@ test.testEqual("Leak resources test", {
184196```
185197
186198``` sh
187- deno test
199+ merlin start
188200
189201test Leak resources test ... ok (5ms)
190202
@@ -224,7 +236,7 @@ test.evalEquals([
224236output
225237
226238``` sh
227- $ deno test
239+ merlin start
228240
229241running 2 tests
230242test object assignment ... ok (10ms)
@@ -251,7 +263,7 @@ test.testNotEqual("two plus two not is five", {
251263output
252264
253265``` sh
254- $ deno test
266+ merlin start
255267
256268running 1 tests
257269test two plus two not is five ... FAILED (2ms)
@@ -286,7 +298,7 @@ test.stringContains("hello world contains orld", {
286298```
287299
288300``` sh
289- deno test
301+ merlin start
290302
291303test hello world contains orld ... ok (8ms)
292304
@@ -306,7 +318,7 @@ test.fetchEqual("fetch data", {
306318```
307319
308320``` sh
309- deno test
321+ merlin start
310322
311323test fetch data ... ok (1440ms)
312324
@@ -323,7 +335,7 @@ test.testRegExp("regEx match", {
323335```
324336
325337``` sh
326- deno test
338+ merlin start
327339
328340test regEx match ... ok (6ms)
329341
@@ -415,7 +427,7 @@ It has a table with the detailed values
415427▒▒▒▒▒▒▒▒ Benchmarking finished
416428
417429┌───────────────────────────────────────────────────────────────────────────────────────────┐
418- │ 🧪 Benchmark name: Sorting arrays │
430+ │ 🚀 Benchmark name: Sorting arrays │
419431├───────────────────────┬──────────────────────────────┬────────────────────────────────────┤
420432│ Total runs: 1000 │ Total time: 1099.6591 ms │ Avg time: 1.0997 ms │
421433├───────────────────────┼────────────────────┬─────────┴───────────┬────────────────────────┤
0 commit comments