|
| 1 | +/* |
| 2 | + * Copyright (c) Microsoft Corporation. |
| 3 | + * Licensed under the MIT License. |
| 4 | + * |
| 5 | + * Code generated by Microsoft (R) AutoRest Code Generator. |
| 6 | + * Changes may cause incorrect behavior and will be lost if the code is regenerated. |
| 7 | + */ |
| 8 | + |
| 9 | +import { |
| 10 | + env, |
| 11 | + record, |
| 12 | + RecorderEnvironmentSetup, |
| 13 | + Recorder |
| 14 | +} from "@azure-tools/test-recorder"; |
| 15 | +import * as assert from "assert"; |
| 16 | + |
| 17 | +const recorderEnvSetup: RecorderEnvironmentSetup = { |
| 18 | + replaceableVariables: { |
| 19 | + AZURE_CLIENT_ID: "azure_client_id", |
| 20 | + AZURE_CLIENT_SECRET: "azure_client_secret", |
| 21 | + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", |
| 22 | + SUBSCRIPTION_ID: "azure_subscription_id" |
| 23 | + }, |
| 24 | + customizationsOnRecordings: [ |
| 25 | + (recording: any): any => |
| 26 | + recording.replace( |
| 27 | + /"access_token":"[^"]*"/g, |
| 28 | + `"access_token":"access_token"` |
| 29 | + ) |
| 30 | + ], |
| 31 | + queryParametersToSkip: [] |
| 32 | +}; |
| 33 | + |
| 34 | +describe("My test", () => { |
| 35 | + let recorder: Recorder; |
| 36 | + |
| 37 | + beforeEach(async function() { |
| 38 | + recorder = record(this, recorderEnvSetup); |
| 39 | + }); |
| 40 | + |
| 41 | + afterEach(async function() { |
| 42 | + await recorder.stop(); |
| 43 | + }); |
| 44 | + |
| 45 | + it("sample test", async function() { |
| 46 | + console.log("Hi, I'm a test!"); |
| 47 | + }); |
| 48 | +}); |
0 commit comments