Skip to content

Commit

Permalink
fix: broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Aug 1, 2024
1 parent 419845a commit a319e48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/codegen/codegenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default abstract class CodeGenerator {
} else {
this.apiContact.name = infoObject.contact.email
? `<${infoObject.contact.email}>`
: infoObject.contact.name ?? undefined;
: (infoObject.contact.name ?? undefined);
}
}

Expand Down
22 changes: 11 additions & 11 deletions packages/api/test/storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('storage', () => {
describe('#generateIntegrityHash', () => {
it('should generate an integrity hash for an API definition', () => {
expect(Storage.generateIntegrityHash(petstoreSimple as OASDocument)).toBe(
'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
);
});
});
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('storage', () => {
private: true,
identifier: 'petstore',
source,
integrity: 'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
integrity: 'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
installerVersion: PACKAGE_VERSION,
language: 'js',
createdAt: expect.any(String),
Expand All @@ -181,7 +181,7 @@ describe('storage', () => {
private: true,
identifier: 'petstore',
source,
integrity: 'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
integrity: 'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
installerVersion: PACKAGE_VERSION,
language: 'js',
createdAt: expect.any(String),
Expand All @@ -202,7 +202,7 @@ describe('storage', () => {
private: true,
identifier: 'petstore',
source,
integrity: 'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
integrity: 'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
installerVersion: PACKAGE_VERSION,
language: 'js',
createdAt: expect.any(String),
Expand Down Expand Up @@ -237,7 +237,7 @@ describe('storage', () => {

await expect(storage.load()).resolves.toHaveProperty('info', {
version: '1.0.0',
title: 'Single Path',
title: 'Simple Petstore',
description: 'This is a slimmed down single path version of the Petstore definition.',
});

Expand All @@ -246,7 +246,7 @@ describe('storage', () => {
private: true,
identifier: 'petstore',
source: '@petstore/v1.0#n6kvf10vakpemvplx',
integrity: 'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
integrity: 'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
installerVersion: PACKAGE_VERSION,
language: 'js',
createdAt: expect.any(String),
Expand All @@ -262,7 +262,7 @@ describe('storage', () => {

await expect(storage.load()).resolves.toHaveProperty('info', {
version: '1.0.0',
title: 'Single Path',
title: 'Simple Petstore',
description: 'This is a slimmed down single path version of the Petstore definition.',
});

Expand All @@ -283,7 +283,7 @@ describe('storage', () => {
private: true,
identifier: 'petstore',
source: '@petstore#n6kvf10vakpemvplx',
integrity: 'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
integrity: 'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
installerVersion: PACKAGE_VERSION,
language: 'js',
createdAt: expect.any(String),
Expand Down Expand Up @@ -317,7 +317,7 @@ describe('storage', () => {

await expect(storage.load()).resolves.toHaveProperty('info', {
version: '1.0.0',
title: 'Single Path',
title: 'Simple Petstore',
description: 'This is a slimmed down single path version of the Petstore definition.',
});

Expand All @@ -326,7 +326,7 @@ describe('storage', () => {
private: true,
identifier: 'petstore',
source: 'http://example.com/readme.json',
integrity: 'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
integrity: 'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
installerVersion: PACKAGE_VERSION,
language: 'js',
createdAt: expect.any(String),
Expand Down Expand Up @@ -483,7 +483,7 @@ describe('storage', () => {
private: true,
identifier: 'petstore-simple',
source: file,
integrity: 'sha512-otRF5TLMeDczSJlrmWLNDHLfmXg+C98oa/I/X2WWycwngh+a6WsbnjTbfwKGRU5DFbagOn2qX2SRvtBGOBRVGg==',
integrity: 'sha512-RyezDd7FHtKDkFMZYMHstZ2ZkvBT4IojYcA/3WCw+ItFXLEO4RT/cY6qurqpqOLt6HF+zBEg7YygYzh2Aqf3rA==',
installerVersion: PACKAGE_VERSION,
language: 'js',
createdAt: expect.any(String),
Expand Down

0 comments on commit a319e48

Please sign in to comment.