Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
fix(util): fix parser v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x committed Jan 20, 2024
1 parent 05149b3 commit 03ba5fe
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
14 changes: 14 additions & 0 deletions deno_dist/base/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// PayPay Error Test
import { PayPayStatus } from '../index.ts'
import { PayPay } from './index.ts'

describe('PayPayError', () => {
const paypay = new PayPay('09019194545', 'ctkpaarR2')

test('PayPay Fail', async () => {
expect(await paypay.login()).toStrictEqual({
success: false,
status: PayPayStatus.LoginFailed
})
})
})
1 change: 0 additions & 1 deletion deno_dist/utils/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function unparseRecoveryCode(recoveryCode: string): {
uuid: string
} {
const decode = (string: string): string => {
console.log(string)
return decodeURIComponent(atob(string))
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paypax",
"version": "1.5.5",
"version": "1.6.0",
"description": "Library for automate PayPay operations",
"scripts": {
"format": "prettier --write ./src/*.{ts,tsx} ./src/**/*.{ts,tsx}",
Expand Down
14 changes: 14 additions & 0 deletions src/base/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// PayPay Error Test
import { PayPayStatus } from '..'
import { PayPay } from '.'

describe('PayPayError', () => {
const paypay = new PayPay('09019194545', 'ctkpaarR2')

test('PayPay Fail', async () => {
expect(await paypay.login()).toStrictEqual({
success: false,
status: PayPayStatus.LoginFailed
})
})
})
1 change: 0 additions & 1 deletion src/utils/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function unparseRecoveryCode(recoveryCode: string): {
uuid: string
} {
const decode = (string: string): string => {
console.log(string)
return decodeURIComponent(atob(string))
}

Expand Down

0 comments on commit 03ba5fe

Please sign in to comment.