@mybucks.online/core 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/test/index.test.js +35 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mybucks.online/core",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Core module of Mybucks.online Crypto Wallet",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -80,6 +80,41 @@ describe("generateToken", () => {
80
80
  DEMO_TRANSFER_TOKEN.slice(6, DEMO_TRANSFER_TOKEN.length - 6)
81
81
  );
82
82
  });
83
+
84
+ test("should return valid token for all networks", async () => {
85
+ assert.notStrictEqual(
86
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "ethereum"),
87
+ null
88
+ );
89
+ assert.notStrictEqual(
90
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "polygon"),
91
+ null
92
+ );
93
+ assert.notStrictEqual(
94
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "arbitrum"),
95
+ null
96
+ );
97
+ assert.notStrictEqual(
98
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "optimism"),
99
+ null
100
+ );
101
+ assert.notStrictEqual(
102
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "bsc"),
103
+ null
104
+ );
105
+ assert.notStrictEqual(
106
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "avalanche"),
107
+ null
108
+ );
109
+ assert.notStrictEqual(
110
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "base"),
111
+ null
112
+ );
113
+ assert.notStrictEqual(
114
+ generateToken(DEMO_PASSWORD, DEMO_PASSCODE, "tron"),
115
+ null
116
+ );
117
+ });
83
118
  });
84
119
 
85
120
  describe("parseToken", () => {