Skip to content

Commit

Permalink
fix: fixed common_sitesettings.json references
Browse files Browse the repository at this point in the history
  • Loading branch information
timwessman committed Nov 21, 2024
1 parent 0c5271e commit 5202232
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from './index';
import { StoryComponent } from './components/StoryComponent';
// importing the json because load won't work in e2e
import siteSettings from '../cookieConsentCore/example/helfi_sitesettings.json';
import siteSettings from '../cookieConsentCore/example/common_sitesettings.json';
import { cookieEventType } from '../cookieConsentCore/cookieConsentCore';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
args: {},
};

const siteSettingsJsonUrl = './static-cookie-consent/helfi_sitesettings.json';
const siteSettingsJsonUrl = './static-cookie-consent/common_sitesettings.json';

const Actions = () => {
const addChatCookie = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import fetchMock, { disableFetchMocks, enableFetchMocks } from 'jest-fetch-mock'

import mockDocumentCookie from './__mocks__/mockDocumentCookieCore';
import { CookieConsentCore } from './cookieConsentCore';
import * as siteSettingsObjRaw from './example/helfi_sitesettings.json';
import * as siteSettingsObjRaw from './example/common_sitesettings.json';
import helpers from './helpers/cookieConsentTestHelpers';

const testTimeout = 500; // TODO: this should be removed and the tests should be refactored to work
Expand Down Expand Up @@ -66,7 +66,7 @@ describe('cookieConsentCore', () => {
}

const urls = {
siteSettingsJsonUrl: '/helfi_sitesettings.json',
siteSettingsJsonUrl: '/common_sitesettings.json',
siteSettings404: '/404.json',
siteSettingsNotJSON: '/malformed.json',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</script>
<script>
function checkCookieConsents() {
const siteSettings = 'helfi_sitesettings.json';
const siteSettings = 'common_sitesettings.json';
const options = {
submitEvent: true,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</script>
<script>
function checkCookieConsents() {
const siteSettings = 'helfi_sitesettings.json';
const siteSettings = 'common_sitesettings.json';
const options = {
submitEvent: true,
settingsPageSelector: '#hds-cookie-consent-settings',
Expand Down

0 comments on commit 5202232

Please sign in to comment.