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

Commit

Permalink
fix: add parameters type to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Aug 11, 2020
1 parent 044c161 commit 0011aab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions test/integration/feeds.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Feeds } from '../../src'
import { Feeds, GetFeedSubmissionResultParameters } from '../../src'
import { Config } from './config'
import { itci } from './it'

Expand All @@ -11,9 +11,9 @@ describe(`${Feeds.name}`, () => {
itci('should be able to get XML string from get submission result', async () => {
expect.assertions(1)

const parameters = {
const parameters: GetFeedSubmissionResultParameters = {
FeedSubmissionId: '51793018437',
format: 'xml' as 'xml',
format: 'xml',
}

const [response] = await feeds.getFeedSubmissionResult(parameters)
Expand All @@ -26,9 +26,9 @@ describe(`${Feeds.name}`, () => {
async () => {
expect.assertions(1)

const parameters = {
const parameters: GetFeedSubmissionResultParameters = {
FeedSubmissionId: '51793018437',
format: 'json' as 'json',
format: 'json',
}

const [response] = await feeds.getFeedSubmissionResult(parameters)
Expand Down
10 changes: 5 additions & 5 deletions test/unit/feeds.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParsingError, SubmitFeedParameters } from '../../src'
import { GetFeedSubmissionResultParameters, ParsingError, SubmitFeedParameters } from '../../src'
import { NextToken } from '../../src/parsing'
import { createMockHttpClient, mockMwsFail, mockParsingError, parsingErrorRegex } from '../utils'

Expand Down Expand Up @@ -27,14 +27,14 @@ describe('feeds', () => {
})

describe('getFeedSubmissionResult', () => {
const xmlParameters = {
const xmlParameters: GetFeedSubmissionResultParameters = {
FeedSubmissionId: '',
format: 'xml' as 'xml',
format: 'xml',
}

const jsonParameters = {
const jsonParameters: GetFeedSubmissionResultParameters = {
FeedSubmissionId: '',
format: 'json' as 'json',
format: 'json',
}

it('returns an XML file when succesful', async () => {
Expand Down

0 comments on commit 0011aab

Please sign in to comment.