aws-testing-library
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,4 +1,5 @@ | ||
import { Method } from 'axios'; | ||
import { IPlainObject } from '../utils/api'; | ||
export interface IApiProps { | ||
method: string; | ||
method: Method; | ||
url: string; | ||
@@ -5,0 +6,0 @@ params?: IPlainObject; |
@@ -7,4 +7,6 @@ "use strict"; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) | ||
t[p[i]] = s[p[i]]; | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
@@ -11,0 +13,0 @@ }; |
@@ -6,3 +6,3 @@ export interface ICommonProps { | ||
} | ||
export declare const sleep: (ms: number) => Promise<{}>; | ||
export declare const sleep: (ms: number) => Promise<unknown>; | ||
export declare const verifyProps: (props: any, expectedProps: string[]) => void; |
@@ -0,6 +1,7 @@ | ||
import { Method } from 'axios'; | ||
export interface IPlainObject extends Record<string, string> { | ||
} | ||
export declare const getResponse: (url: string, method: string, params?: IPlainObject | undefined, data?: IPlainObject | undefined, headers?: IPlainObject | undefined) => Promise<{ | ||
export declare const getResponse: (url: string, method: Method, params?: IPlainObject | undefined, data?: IPlainObject | undefined, headers?: IPlainObject | undefined) => Promise<{ | ||
statusCode: number; | ||
data: any; | ||
}>; |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.getResponse = async (url, method, params, data, headers) => { | ||
const result = await axios_1.default({ | ||
const config = { | ||
data, | ||
@@ -14,5 +14,6 @@ headers, | ||
validateStatus: () => true, | ||
}); | ||
}; | ||
const result = await axios_1.default(config); | ||
return { statusCode: result.status, data: result.data }; | ||
}; | ||
//# sourceMappingURL=api.js.map |
@@ -1,1 +0,1 @@ | ||
export declare const deploy: (stage?: string) => Promise<{}>; | ||
export declare const deploy: (stage?: string) => Promise<unknown>; |
{ | ||
"name": "aws-testing-library", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Chai and Jest matchers for aws services", | ||
@@ -15,3 +15,3 @@ "scripts": { | ||
"tag": "git tag \"v$npm_package_version\" && git push --tags", | ||
"prepublishOnly": "yarn run tag && yarn lint && yarn run build" | ||
"prepublishOnly": "yarn run build" | ||
}, | ||
@@ -47,23 +47,23 @@ "files": [ | ||
"@types/chai": "^4.1.7", | ||
"@types/jest": "^23.3.2", | ||
"@types/jest-diff": "^20.0.0", | ||
"@types/jest-matcher-utils": "^21.0.1", | ||
"@types/jest": "^24.0.13", | ||
"@types/jest-diff": "^20.0.1", | ||
"@types/jest-matcher-utils": "^21.0.2", | ||
"@types/mockdate": "^2.0.0", | ||
"@types/node": "^10.11.1", | ||
"@types/node": "^12.0.4", | ||
"@types/uuid": "^3.4.4", | ||
"chai": "^4.2.0", | ||
"jest": "^23.6.0", | ||
"jest-junit": "^5.1.0", | ||
"jest": "^24.8.0", | ||
"jest-junit": "^6.4.0", | ||
"mockdate": "^2.0.2", | ||
"prettier": "^1.14.3", | ||
"ts-jest": "^23.10.1", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"tslint-config-prettier": "^1.15.0", | ||
"typescript": "^3.0.3" | ||
"prettier": "^1.17.1", | ||
"ts-jest": "^24.0.2", | ||
"ts-node": "^8.2.0", | ||
"tslint": "^5.17.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"typescript": "^3.5.1" | ||
}, | ||
"dependencies": { | ||
"aws-sdk": "^2.323.0", | ||
"axios": "^0.18.1", | ||
"jest-diff": "^23.6.0", | ||
"aws-sdk": "^2.469.0", | ||
"axios": "^0.19.0", | ||
"jest-diff": "^24.8.0", | ||
"uuid": "^3.3.2" | ||
@@ -70,0 +70,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
100046
108
1344
+ Added@jest/types@24.9.0(transitive)
+ Added@types/istanbul-lib-coverage@2.0.6(transitive)
+ Added@types/istanbul-lib-report@3.0.3(transitive)
+ Added@types/istanbul-reports@1.1.2(transitive)
+ Added@types/yargs@13.0.12(transitive)
+ Added@types/yargs-parser@21.0.3(transitive)
+ Addedansi-regex@4.1.1(transitive)
+ Addedaxios@0.19.2(transitive)
+ Addeddiff-sequences@24.9.0(transitive)
+ Addedjest-diff@24.9.0(transitive)
+ Addedjest-get-type@24.9.0(transitive)
+ Addedpretty-format@24.9.0(transitive)
+ Addedreact-is@16.13.1(transitive)
- Removedansi-regex@3.0.1(transitive)
- Removedaxios@0.18.1(transitive)
- Removeddiff@3.5.0(transitive)
- Removedis-buffer@2.0.5(transitive)
- Removedjest-diff@23.6.0(transitive)
- Removedjest-get-type@22.4.3(transitive)
- Removedpretty-format@23.6.0(transitive)
Updatedaws-sdk@^2.469.0
Updatedaxios@^0.19.0
Updatedjest-diff@^24.8.0