Skip to content

Commit

Permalink
Change path of application script in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hjvoid committed Jun 13, 2024
1 parent 3e03c6c commit 3029a2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/javascripts/application.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ describe("Application JS", () => {
});

it("should always call the showBannerIfConsentNotSet", () => {
require("./application")
require("./application.min.js")

expect(
window.GovUkPay.cookies.showBannerIfConsentNotSet.mock.calls.length
).toBe(1);
});

it("does not load Google analytics when there is no cokie consent cookie", () => {
require("./application")
require("./application.min.js")

expect(
window.initialiseGtag.mock.calls.length
Expand All @@ -40,7 +40,7 @@ describe("Application JS", () => {
it("does not load Google analytics when cookie consent cookie = false", () => {
const cookieValue = JSON.stringify({ analytics: false })
JsCookie.set("govuk_pay_cookie_policy", cookieValue);
require("./application")
require("./application.min.js")

expect(
window.initialiseGtag.mock.calls.length
Expand All @@ -51,7 +51,7 @@ describe("Application JS", () => {
const cookieValue = JSON.stringify({ analytics: true })
JsCookie.set("govuk_pay_cookie_policy", cookieValue);

require("./application")
require("./application.min.js")

expect(
window.initialiseGtag.mock.calls.length
Expand Down

0 comments on commit 3029a2a

Please sign in to comment.