From 0fed4324a1a51b960a27450470be9e7ce740c665 Mon Sep 17 00:00:00 2001 From: Joseph Frazier <1212jtraceur@gmail.com> Date: Tue, 1 Oct 2019 07:54:20 -0400 Subject: [PATCH] Use inline snapshot for getVehicleType test --- src/__snapshots__/getVehicleType.test.js.snap | 14 -------------- src/getVehicleType.test.js | 13 ++++++++++++- 2 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 src/__snapshots__/getVehicleType.test.js.snap diff --git a/src/__snapshots__/getVehicleType.test.js.snap b/src/__snapshots__/getVehicleType.test.js.snap deleted file mode 100644 index 79f38543..00000000 --- a/src/__snapshots__/getVehicleType.test.js.snap +++ /dev/null @@ -1,14 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`getVehicleType returns the right object 1`] = ` -Object { - "result": Object { - "licensePlate": "T716540C", - "licenseState": "NY", - "vehicleBody": "Sedan/Saloon", - "vehicleMake": "LINCOLN", - "vehicleModel": "Town Car", - "vehicleYear": "2009", - }, -} -`; diff --git a/src/getVehicleType.test.js b/src/getVehicleType.test.js index e195f705..9d62ae0c 100644 --- a/src/getVehicleType.test.js +++ b/src/getVehicleType.test.js @@ -12,6 +12,17 @@ describe('getVehicleType', () => { licenseState: 'NY', }); - expect(result).toMatchSnapshot(); + expect(result).toMatchInlineSnapshot(` +Object { + "result": Object { + "licensePlate": "T716540C", + "licenseState": "NY", + "vehicleBody": "Sedan/Saloon", + "vehicleMake": "LINCOLN", + "vehicleModel": "Town Car", + "vehicleYear": "2009", + }, +} +`); }); });