Skip to content

Commit

Permalink
Fixed test and snap to match implementation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TeresaGobble committed Feb 15, 2024
1 parent 7def6f4 commit 67dd4b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`healthCheck/validateFaustEnvVars logs an error when the secret key validation fails: healthCheck/validateFaustEnvVars logs an error when the secret key validation fails: Check to ensure your FAUST_SECRET_KEY matches your Faust Secret Key under wp-admin settings 1 1`] = `Promise {}`;
exports[`healthCheck/validateFaustEnvVars logs an error when the secret key validation fails: Ensure your FAUST_SECRET_KEY environment variable matches your Secret Key in the Faust WordPress plugin settings 1`] = `Promise {}`;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fetchMock from 'fetch-mock';
import {
isWPEngineComSubdomain,
validateFaustEnvVars,
} from '../../src/healthCheck/validateFaustEnvVars';
import fetchMock from 'fetch-mock';

/**
* @jest-environment jsdom
Expand Down Expand Up @@ -66,8 +66,7 @@ describe('healthCheck/validateFaustEnvVars', () => {

await validateFaustEnvVars();

// return expect(Promise.resolve(await validateFaustEnvVars())).toMatchInlineSnapshot(`healthCheck/validateFaustEnvVars logs an error when the secret key validation fails: Check to ensure your FAUST_SECRET_KEY matches your Faust Secret Key under wp-admin settings 1`);
return expect(Promise.resolve(validateFaustEnvVars())).toMatchSnapshot(`healthCheck/validateFaustEnvVars logs an error when the secret key validation fails: Check to ensure your FAUST_SECRET_KEY matches your Faust Secret Key under wp-admin settings 1`);
return expect(Promise.resolve(validateFaustEnvVars())).toMatchSnapshot(`Ensure your FAUST_SECRET_KEY environment variable matches your Secret Key in the Faust WordPress plugin settings`);
});

});
Expand Down

0 comments on commit 67dd4b8

Please sign in to comment.