Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test cases for clientNamespace on anonymous models #2071

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ArcturusZhang
Copy link
Member

No description provided.

@microsoft-github-policy-service microsoft-github-policy-service bot added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Jan 14, 2025
@azure-sdk
Copy link
Collaborator

No changes needing a change description found.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 14, 2025

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@ArcturusZhang ArcturusZhang marked this pull request as ready for review January 20, 2025 08:38
@@ -37,6 +72,67 @@ describe("typespec-client-generator-core: @clientNamespace", () => {
strictEqual(runner.context.sdkPackage.enums[0].clientNamespace, "TestService");
});

it("namespace on anonymous response in a template", async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should be adding @clientNamespace tests as well, instead of just looking at .clientNamespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants