Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 3, 2025

Fixes a TypeScript compilation error in src/platform.test.ts where the august-yale module mock had duplicate default properties in the same object literal:

// Before (compilation error)
return {
  default: class August { ... },  // First default property
  default: MockConstructor,       // Second default property - DUPLICATE!
}

// After (fixed)
return {
  default: MockConstructor,
}

The error was:

src/platform.test.ts:35:5 - error TS1117: An object literal cannot have multiple properties with the same name.

The fix removes the redundant class definition and keeps only the MockConstructor as the default export, which already provides all the necessary static methods (authorize, validate, details) for testing. All existing tests continue to pass.

Fixes #171.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@donavanbecker donavanbecker changed the base branch from latest to beta-3.0.3 September 3, 2025 16:01
@donavanbecker
Copy link
Collaborator

@copilot please try again

Copy link
Contributor Author

Copilot AI commented Sep 3, 2025

@copilot please try again

Fixed the TypeScript compilation error by removing the duplicate default property in the august-yale mock. The redundant class definition has been removed, keeping only the MockConstructor as the default export. TypeScript now compiles without errors and all tests pass. (commit ab48746)

@Copilot Copilot AI changed the title [WIP] An object literal cannot have multiple properties with the same name. Fix TypeScript compilation error: remove duplicate 'default' property in august-yale mock Sep 3, 2025
Copilot finished work on behalf of donavanbecker September 3, 2025 16:25
@github-actions github-actions bot added enhancement New feature or request beta labels Sep 3, 2025
@donavanbecker donavanbecker merged commit a5aaefc into beta-3.0.3 Sep 3, 2025
7 checks passed
@donavanbecker donavanbecker deleted the copilot/fix-171 branch September 3, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

An object literal cannot have multiple properties with the same name.
2 participants