-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from tilfin/feature/export-PayPayRestSDK
Enable to create the instance of PayPayRestSDK
- Loading branch information
Showing
4 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import PayPay from "../src"; | ||
|
||
|
||
|
||
test('Unit Test - Check the different fields between two RestSDK instances', async () => { | ||
const conf1 = { | ||
clientId: 'clientId1', | ||
clientSecret: 'clientSecret1', | ||
merchantId: '2473982', | ||
productionMode: false | ||
}; | ||
const client1 = new PayPay.PayPayRestSDK(); | ||
client1.configure(conf1) | ||
|
||
const conf2 = { | ||
clientId: 'clientId2', | ||
clientSecret: 'clientSecret2', | ||
merchantId: '3429854', | ||
productionMode: true | ||
}; | ||
const client2 = new PayPay.PayPayRestSDK(); | ||
client2.configure(conf2) | ||
|
||
expect(client1['auth']).not.toEqual(client2['auth']); | ||
expect(client1['config']).not.toEqual(client2['config']); | ||
}); |