iota-utools 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/public/index.html +1 -1
- package/rollup.config.js +1 -1
- package/test/tree.test.ts +0 -5
- package/test/utools.test.ts +0 -74
package/package.json
CHANGED
package/public/index.html
CHANGED
package/rollup.config.js
CHANGED
package/test/tree.test.ts
DELETED
package/test/utools.test.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "@jest/globals";
|
|
2
|
-
import { getTypeof, isArray, isNumber, isString, isBoolean, isObject, isFunction } from "../src/main";
|
|
3
|
-
|
|
4
|
-
describe("utools", () => {
|
|
5
|
-
test("get value typeof", () => {
|
|
6
|
-
expect(getTypeof("string")).toBe("String");
|
|
7
|
-
});
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
describe("utools", () => {
|
|
11
|
-
test("get value typeof", () => {
|
|
12
|
-
expect(getTypeof(1024)).toBe("Number");
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
describe("utools", () => {
|
|
17
|
-
test("get value typeof", () => {
|
|
18
|
-
expect(getTypeof(false)).toBe("Boolean");
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
describe("utools", () => {
|
|
23
|
-
test("value is Array", () => {
|
|
24
|
-
expect(isArray([1, 2, 3])).toBe(true);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
describe("utools", () => {
|
|
29
|
-
test("value is Array", () => {
|
|
30
|
-
expect(isArray({ name: "lx" })).toBe(false);
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
describe("utools", () => {
|
|
35
|
-
test("value is number", () => {
|
|
36
|
-
expect(isNumber("hello world")).toBe(false);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
describe("utools", () => {
|
|
41
|
-
test("value is number", () => {
|
|
42
|
-
expect(isNumber(1024)).toBe(true);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
describe("utools", () => {
|
|
47
|
-
test("value is string", () => {
|
|
48
|
-
expect(isString(1024)).toBe(false);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
describe("utools", () => {
|
|
53
|
-
test("value is String", () => {
|
|
54
|
-
expect(isString("hello world")).toBe(true);
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
describe("utools", () => {
|
|
59
|
-
test("value is bol", () => {
|
|
60
|
-
expect(isObject({ name: "lx" })).toBe(true);
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
describe("utools", () => {
|
|
65
|
-
test("value is bol", () => {
|
|
66
|
-
expect(isBoolean(false)).toBe(true);
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
describe("utools", () => {
|
|
71
|
-
test("value is bol", () => {
|
|
72
|
-
expect(isFunction({ name: "lx" })).toBe(false);
|
|
73
|
-
});
|
|
74
|
-
});
|