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

Commit 03ba5fe

Browse files
committed
fix(util): fix parser v1.6.0
1 parent 05149b3 commit 03ba5fe

File tree

5 files changed

+29
-3
lines changed

5 files changed

+29
-3
lines changed

deno_dist/base/index.test.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// PayPay Error Test
2+
import { PayPayStatus } from '../index.ts'
3+
import { PayPay } from './index.ts'
4+
5+
describe('PayPayError', () => {
6+
const paypay = new PayPay('09019194545', 'ctkpaarR2')
7+
8+
test('PayPay Fail', async () => {
9+
expect(await paypay.login()).toStrictEqual({
10+
success: false,
11+
status: PayPayStatus.LoginFailed
12+
})
13+
})
14+
})

deno_dist/utils/parse.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export function unparseRecoveryCode(recoveryCode: string): {
2121
uuid: string
2222
} {
2323
const decode = (string: string): string => {
24-
console.log(string)
2524
return decodeURIComponent(atob(string))
2625
}
2726

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "paypax",
3-
"version": "1.5.5",
3+
"version": "1.6.0",
44
"description": "Library for automate PayPay operations",
55
"scripts": {
66
"format": "prettier --write ./src/*.{ts,tsx} ./src/**/*.{ts,tsx}",

src/base/index.test.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// PayPay Error Test
2+
import { PayPayStatus } from '..'
3+
import { PayPay } from '.'
4+
5+
describe('PayPayError', () => {
6+
const paypay = new PayPay('09019194545', 'ctkpaarR2')
7+
8+
test('PayPay Fail', async () => {
9+
expect(await paypay.login()).toStrictEqual({
10+
success: false,
11+
status: PayPayStatus.LoginFailed
12+
})
13+
})
14+
})

src/utils/parse.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export function unparseRecoveryCode(recoveryCode: string): {
2121
uuid: string
2222
} {
2323
const decode = (string: string): string => {
24-
console.log(string)
2524
return decodeURIComponent(atob(string))
2625
}
2726

0 commit comments

Comments
 (0)