Skip to content

Commit

Permalink
fix bad import in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Sep 17, 2024
1 parent d202c17 commit 37c4aaf
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
FgaApiValidationError,
FgaValidationError,
OpenFgaApi,
TelemetryAttribute,
TelemetryConfiguration,
TelemetryMetricConfiguration,
TelemetryMetricsConfiguration,
Expand All @@ -38,7 +39,6 @@ import {
OPENFGA_API_TOKEN_ISSUER,
} from "./helpers/default-config";
import { getNocks } from "./helpers/nocks";
import { TelemetryAttribute } from "../dist";

const nocks = getNocks(nock);
nock.disableNetConnect();
Expand Down Expand Up @@ -262,10 +262,26 @@ describe("OpenFGA SDK", function () {
// metricConfig,
// );
// const telConfig = new TelemetryConfiguration(metricsConfig);

// const telemetryConfig = {
// metrics: {
// counterCredentialsRequest: {
// attributes: new Set<TelemetryAttribute>
// },
// histogramRequestDuration: {
// attributes: new Set<TelemetryAttribute>
// },
// histogramQueryDuration: {
// attributes: new Set<TelemetryAttribute>
// }
// }
// };

expect(
() =>
new OpenFgaApi({
...baseConfig,
// telemetry: telemetryConfig,
// telemetry: telConfig,
telemetry: {
metrics: {
Expand Down

0 comments on commit 37c4aaf

Please sign in to comment.