Skip to content

Commit

Permalink
Add unit test for buffer (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
taichunmin authored Nov 8, 2023
2 parents 2c98432 + 0f3c0a4 commit 9f59ed1
Show file tree
Hide file tree
Showing 4 changed files with 619 additions and 169 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "chameleon-ultra.js",
"repository": "[email protected]:taichunmin/chameleon-ultra.js.git",
"unpkg": "dist/iife/index.min.js",
"version": "0.2.13",
"version": "0.2.14",
"bugs": {
"url": "https://github.com/taichunmin/chameleon-ultra.js/issues"
},
Expand Down
14 changes: 8 additions & 6 deletions src/ChameleonUltra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1370,13 +1370,15 @@ export class ChameleonUltra {
* const res1 = await ultra.cmdMf1AcquireDarkside(0, Mf1KeyType.KEY_A, true)
* console.log(res1)
* const res2 = {
* ar: res1.ar.toString('hex'),
* ks: res1.ks.toString('hex'),
* nr: res1.nr.toString('hex'),
* nt: res1.nt.toString('hex'),
* par: res1.par.toString('hex'),
* status: `${DarksideStatus[res1.status]} (${res1.status})`,
* uid: res1.uid.toString('hex'),
* ...(res1.status !== DarksideStatus.OK ? {} : {
* ar: res1.ar.toString('hex'),
* ks: res1.ks.toString('hex'),
* nr: res1.nr.toString('hex'),
* nt: res1.nt.toString('hex'),
* par: res1.par.toString('hex'),
* uid: res1.uid.toString('hex'),
* }),
* }
* console.log(res2)
* // {
Expand Down
Loading

0 comments on commit 9f59ed1

Please sign in to comment.