Skip to content

Commit

Permalink
feat: export entrypoint class
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentoanit committed Apr 25, 2020
1 parent ca79c55 commit 2577671
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ export * from './operations/recommendations/types'
export * from './operations/reports/index'
export * from './operations/snapshots/types'
export * from './operations/stores/types'
export * from './amazon-advertising'
7 changes: 7 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as index from '../src/index'
import * as entrypointClass from '../src/amazon-advertising'
import * as adGroupTypes from '../src/operations/ad-groups/types'
import { CampaignBiddingAdjustmentsPredicate } from '../src/operations/bidding/campaign-bidding-adjustments-predicate'
import { CampaignBiddingStrategy } from '../src/operations/bidding/campaign-bidding-strategy'
Expand All @@ -15,6 +16,12 @@ import * as reportTypes from '../src/operations/reports/index'
import * as snapshotTypes from '../src/operations/snapshots/types'

describe('index', () => {
describe('amazon advertising', () => {
it('should export main entry class', () => {
expect(index.AmazonAdvertising).toEqual(entrypointClass.AmazonAdvertising)
})
})

describe('ad group', () => {
it('should export all enums', () => {
expect(index.AdGroupState).toEqual(adGroupTypes.AdGroupState)
Expand Down

0 comments on commit 2577671

Please sign in to comment.