From d4016b81422984288e626041ef34074a6f11aa21 Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Tue, 13 Oct 2020 19:10:04 +0300 Subject: [PATCH] chore: fix tests --- .../__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap | 2 ++ src/services/__tests__/models/Callback.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap b/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap index 3af7ce9985..745c4cad4c 100644 --- a/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap +++ b/src/components/__tests__/__snapshots__/DiscriminatorDropdown.test.tsx.snap @@ -9,6 +9,7 @@ exports[`Components SchemaView discriminator should correctly render discriminat "deprecated": false, "description": "", "example": undefined, + "expanded": false, "explode": false, "in": undefined, "kind": "field", @@ -58,6 +59,7 @@ exports[`Components SchemaView discriminator should correctly render discriminat "deprecated": false, "description": "", "example": undefined, + "expanded": false, "explode": false, "in": undefined, "kind": "field", diff --git a/src/services/__tests__/models/Callback.test.ts b/src/services/__tests__/models/Callback.test.ts index 9fb67799dc..1bfe8ca7ca 100644 --- a/src/services/__tests__/models/Callback.test.ts +++ b/src/services/__tests__/models/Callback.test.ts @@ -20,7 +20,7 @@ describe('Models', () => { ); expect(callback.name).toEqual('Test.Callback'); expect(callback.operations.length).toEqual(0); - expect(callback.expanded).toBeUndefined(); + expect(callback.expanded).toBeFalsy(); }); }); });