Skip to content

Commit

Permalink
Merge pull request #3910 from alphagov/fix-failing-test
Browse files Browse the repository at this point in the history
Fix failing test
  • Loading branch information
andysellick committed Mar 11, 2024
2 parents b606d05 + 1f2769a commit 81a4223
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -5,6 +5,22 @@ var GOVUK = window.GOVUK || {}
describe('Cookie helper functions', function () {
'use strict'

beforeEach(function () {
GOVUK.cookie('cookies_policy', null)
GOVUK.cookie('cookies_preferences_set', null)
GOVUK.cookie('_ga_VBLT2V3FZR', null)
GOVUK.cookie('_ga_P1DGM6TVYF', null)
GOVUK.cookie('_ga_S5RQ7FTGVR', null)
})

afterEach(function () {
GOVUK.cookie('cookies_policy', null)
GOVUK.cookie('cookies_preferences_set', null)
GOVUK.cookie('_ga_VBLT2V3FZR', null)
GOVUK.cookie('_ga_P1DGM6TVYF', null)
GOVUK.cookie('_ga_S5RQ7FTGVR', null)
})

describe('GOVUK.cookie', function () {
it('returns the cookie value if not provided with a value to set', function () {
GOVUK.cookie('cookies_preferences_set', 'testing fetching cookie value')
Expand Down

0 comments on commit 81a4223

Please sign in to comment.