Skip to content

Commit

Permalink
update tsts
Browse files Browse the repository at this point in the history
  • Loading branch information
KarishmaGhiya committed Sep 29, 2021
1 parent d92cae8 commit bcf81a9
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import * as assert from "assert";
import { assert } from "chai";
import {
BatchRequest as GeneratedBatchRequest,
BatchQueryRequest
Expand All @@ -24,7 +24,12 @@ import {
SerializerOptions
} from "@azure/core-client";
import { OperationTracingOptions } from "@azure/core-tracing";
import { Durations, ListMetricDefinitionsOptions, MetricsQueryOptions } from "../../../src";
import {
Durations,
ListMetricDefinitionsOptions,
MetricsQueryOptions,
MetricsQueryResult
} from "../../../src";
import { AbortSignalLike } from "@azure/abort-controller";

describe("Model unit tests", () => {
Expand Down Expand Up @@ -234,7 +239,10 @@ describe("Model unit tests", () => {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { getMetricByName, ...rest } = actualConvertedResponse;
assert.deepEqual({ ...rest }, expectedResponse);
assert.deepEqual(
{ ...rest } as Omit<MetricsQueryResult, "getMetricByName">,
expectedResponse
);
});

it("convertRequestOptionsForMetricsDefinitions (all fields)", () => {
Expand Down

0 comments on commit bcf81a9

Please sign in to comment.