Skip to content

Commit

Permalink
ref: Rename createdAt to created_at (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Apr 18, 2024
1 parent d249d24 commit 8046d74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/targets/__tests__/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('getUpdatedManifest', () => {
{ owner: 'testSourceOwner', repo: 'testSourceRepo' }
);

it('check if createdAt exists', async () => {
it('check if created_at exists', async () => {
const registryConfig: RegistryConfig = {
type: RegistryPackageType.SDK,
canonicalName: 'example-package',
Expand All @@ -42,7 +42,7 @@ describe('getUpdatedManifest', () => {
revision
);

// check if property createdAt exists
expect(updatedManifest).toHaveProperty('createdAt');
// check if property created_at exists
expect(updatedManifest).toHaveProperty('created_at');
});
});
4 changes: 2 additions & 2 deletions src/targets/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,12 @@ export class RegistryTarget extends BaseTarget {
// Update the manifest
const updatedManifest: {
version: string;
createdAt: string;
created_at: string;
[key: string]: any;
} = {
...packageManifest,
version,
createdAt: new Date().toISOString(),
created_at: new Date().toISOString(),
};

// Add file links if it's a generic app (legacy)
Expand Down

0 comments on commit 8046d74

Please sign in to comment.