diff --git a/spec/javascripts/analytics/static-analytics-spec.js b/spec/javascripts/analytics/static-analytics-spec.js index af89b93a8..7bfdceb35 100644 --- a/spec/javascripts/analytics/static-analytics-spec.js +++ b/spec/javascripts/analytics/static-analytics-spec.js @@ -68,6 +68,16 @@ describe("GOVUK.StaticAnalytics", function() { expect(pageViewObject.dimension42).toEqual('name-of-test:name-of-ab-bucket'); expect(pageViewObject.dimension48).toEqual('name-of-other-test:name-of-other-ab-bucket'); }); + it('sets the spelling suggestion as dimension 81', function() { + $('head').append('\ + \ + '); + + analytics = new GOVUK.StaticAnalytics({universalId: 'universal-id'}); + pageViewObject = getPageViewObject(); + + expect(pageViewObject.dimension81).toEqual('driving'); + }); it('ignores A/B meta tags with invalid dimensions', function () { $('head').append('\