-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hidden to generated class context (#831)
* Update ts-morph dependency to latest version * Code change to add @hidden to generated class and context * Add new test case to generate SDK with hidden * Generated SDKs * Adding a spec file for appconfiguration export * Smoke Test Changes * Added comments * Change hasCustomayer to hideClient * Change hideClient to hideClients * Minor Fix
- Loading branch information
1 parent
c20fe96
commit 810897e
Showing
660 changed files
with
23,637 additions
and
61,976 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { AppConfigurationClient } from "./generated/appconfigurationexport/src"; | ||
import * as fs from "fs"; | ||
import { assert } from "chai"; | ||
|
||
describe("Check Hidden Header", () => { | ||
let client: AppConfigurationClient; | ||
|
||
beforeEach(()=>{ | ||
const endpoint: string = "sampleEndPoint"; | ||
client = new AppConfigurationClient(endpoint); | ||
assert.notEqual(client, null); | ||
}) | ||
|
||
it("Client Class File must have Hidden Header", async() => { | ||
const content: string = fs.readFileSync( | ||
"./test/integration/generated/appconfigurationexport/src/appConfigurationClient.ts", | ||
"utf-8" | ||
); | ||
|
||
const containsHidden = content.includes( | ||
"/** @hidden */\nexport class AppConfigurationClient extends AppConfigurationClientContext {" | ||
); | ||
|
||
assert.equal(containsHidden, true, "Expected hidden Header missing"); | ||
}); | ||
|
||
it("Client Context Class File must have Hidden Header", async() => { | ||
const content: string = fs.readFileSync( | ||
"./test/integration/generated/appconfigurationexport/src/appConfigurationClientContext.ts", | ||
"utf-8" | ||
); | ||
|
||
const containsHidden = content.includes( | ||
"/** @hidden */\nexport class AppConfigurationClientContext extends coreHttp.ServiceClient {" | ||
); | ||
|
||
assert.equal(containsHidden, true, "Expected hidden Header missing"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.