Skip to content

Commit

Permalink
update all test
Browse files Browse the repository at this point in the history
  • Loading branch information
restuwahyu13 committed Feb 1, 2021
1 parent 614f42c commit 4e4df32
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 32 deletions.
2 changes: 1 addition & 1 deletion __test__/apiConfig.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isType } from '../src/utils/util.is'
import { isType } from 'is-any-type'
import { ApiConfig as MidtransConfigApi } from '../src/lib/apiConfig'
import { config } from '../config'

Expand Down
2 changes: 1 addition & 1 deletion __test__/coreApi.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isType } from '../src/utils/util.is'
import { isType } from 'is-any-type'
import { CoreApi } from '../src/lib/coreApi'
import { config } from '../config'

Expand Down
2 changes: 1 addition & 1 deletion __test__/httpClient.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isType } from '../src/utils/util.is'
import { isType } from 'is-any-type'
import { HttpClient } from '../src/lib/httpClient'
import { config } from '../config'
describe('HttpClient', () => {
Expand Down
2 changes: 1 addition & 1 deletion __test__/iris.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isType } from '../src/utils/util.is'
import { isType } from 'is-any-type'
import { Iris } from '../src/lib/iris'
import { config } from '../config'
let globVar = {
Expand Down
2 changes: 1 addition & 1 deletion __test__/midtransClient.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isType } from '../src/utils/util.is'
import { isType } from 'is-any-type'
import { MidtransClient } from '../src/index'
import { config } from '../config'

Expand Down
2 changes: 1 addition & 1 deletion __test__/snap.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isType } from '../src/utils/util.is'
import { isType } from 'is-any-type'
import { Snap } from '../src/lib/snap'
import { config } from '../config'

Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "midtrans-node-client",
"version": "0.0.1-rc",
"version": "0.0.1",
"description": "Unoffficial Midtrans Payment API Client for Node JS | Alternative for Midtrans Official Module",
"main": "./dist/index.js",
"files": [
Expand Down Expand Up @@ -48,6 +48,7 @@
],
"dependencies": {
"axios": "^0.21.1",
"is-any-type": "0.0.2",
"lodash": "^4.17.20"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/httpClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios, { AxiosInstance, AxiosResponse, Method } from 'axios'
import { isType } from '../utils/util.is'
import { isType } from 'is-any-type'
import { Snap } from '../lib/snap'
import { CoreApi } from '../lib/coreApi'
import { Iris } from '../lib/iris'
Expand Down
24 changes: 0 additions & 24 deletions src/utils/util.is.ts

This file was deleted.

0 comments on commit 4e4df32

Please sign in to comment.