Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang committed Sep 14, 2024
1 parent 8f06274 commit 9def08e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ describe("typespec-client-generator-core: built-in types", () => {
});

it("format should not alter typespec types", async function () {
const runnerWithCore = await createSdkTestRunner({
runner = await createSdkTestRunner({
librariesToAdd: [AzureCoreTestLibrary],
autoUsings: ["Azure.Core"],
emitterName: "@azure-tools/typespec-java",
Expand All @@ -255,7 +255,7 @@ describe("typespec-client-generator-core: built-in types", () => {
}
`
);
const model = runnerWithCore.context.sdkPackage.models[0];
const model = runner.context.sdkPackage.models[0];
const urlScalarProperty = model.properties.find((x) => x.name === "urlScalar");
const urlFormatProperty = model.properties.find((x) => x.name === "urlFormatProperty");
ok(urlScalarProperty);
Expand Down

0 comments on commit 9def08e

Please sign in to comment.