Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/api/__tests__/cache.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('#load', () => {
);
});

it('should throw an error if neither a url or file are detected', async () => {
it('should throw an error if neither a url or file are detected', () => {
return expect(new Cache('/this/is/not/a/real/path.json').load()).rejects.toThrow(
/supply a URL or a path on your filesystem/
);
Expand Down Expand Up @@ -190,7 +190,7 @@ describe('#get', () => {
cacheStore = new Cache(file);
});

it('should return an object if the current uri is an object (used for unit testing)', async () => {
it('should return an object if the current uri is an object (used for unit testing)', () => {
const obj = JSON.parse(readmeExampleJson);
const loaded = new Cache(obj).get();

Expand Down
2 changes: 1 addition & 1 deletion packages/api/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('#accessors', () => {
});

describe('#operationId()', () => {
it('should work for operationId', async () => {
it('should work for operationId', () => {
const mock = nock(petstoreServerUrl).get('/pets').reply(200);

expect(async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/__tests__/lib/prepareParams.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('#prepareParams', () => {
expect(prepareParams(operation, {}, {})).toStrictEqual({});
});

it('should prepare body and metadata when both are supplied', async () => {
it('should prepare body and metadata when both are supplied', () => {
const operation = readmeSpec.operation('/api-specification', 'post');
const body = {
spec: 'this is the contents of an api specification',
Expand Down Expand Up @@ -102,7 +102,7 @@ describe('#prepareParams', () => {
});
});

it('should handle bodies when the content type is application/x-www-form-urlencoded', async () => {
it('should handle bodies when the content type is application/x-www-form-urlencoded', () => {
const operation = usptoSpec.operation('/{dataset}/{version}/records', 'post');
const body = {
criteria: '*:*',
Expand Down
92 changes: 65 additions & 27 deletions packages/api/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"node-fetch": "^2.6.0"
},
"devDependencies": {
"@readme/eslint-config": "^3.1.0",
"@readme/eslint-config": "^3.2.0",
"@readme/oas-examples": "^3.4.0",
"eslint": "^7.0.0",
"jest": "^26.0.1",
Expand Down
92 changes: 65 additions & 27 deletions packages/httpsnippet-client-api/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/httpsnippet-client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"httpsnippet": "^1.20.0"
},
"devDependencies": {
"@readme/eslint-config": "^3.1.0",
"@readme/eslint-config": "^3.2.0",
"eslint": "^7.1.0",
"jest": "^26.0.1",
"prettier": "^2.0.5"
Expand Down