diff --git a/cinemas/picturehouses.com/tests/transform.test.js b/cinemas/picturehouses.com/tests/transform.test.js index 7e53daa..4b014a1 100644 --- a/cinemas/picturehouses.com/tests/transform.test.js +++ b/cinemas/picturehouses.com/tests/transform.test.js @@ -4,6 +4,8 @@ const moviesWithLocalScreenings = require("./mock-data/movie-with-local-screenin const formatParameter = (movies) => ({ movies }); +jest.useFakeTimers().setSystemTime(new Date("2024-08-01")); + describe("Hackney Picturehouse", () => { describe("when no movies provided", () => { it("returns an empty list of events", async () => { diff --git a/cinemas/picturehouses.com/transform.js b/cinemas/picturehouses.com/transform.js index 27e1647..167385b 100644 --- a/cinemas/picturehouses.com/transform.js +++ b/cinemas/picturehouses.com/transform.js @@ -13,11 +13,16 @@ async function transform({ movies }) { if (showings.length === 0) return moviesAtCinema; + // Remove private hire entries + if (movie.Title.toLowerCase().startsWith("private hire (")) { + return moviesAtCinema; + } + const overview = { categories: [], directors: [], actors: [], - duration: parseMinsToMs(movie.RunTime), + duration: parseMinsToMs(movie.RunTime) || parseMinsToMs(90), }; if (movie.Rating) { diff --git a/cinemas/riocinema.org.uk/tests/transform.test.js b/cinemas/riocinema.org.uk/tests/transform.test.js index c24f454..3ef5aab 100644 --- a/cinemas/riocinema.org.uk/tests/transform.test.js +++ b/cinemas/riocinema.org.uk/tests/transform.test.js @@ -3,6 +3,8 @@ const moviesWithLocalScreenings = require("./mock-data/movie-with-local-screenin const formatParameter = (data) => ({ data: { movies: { data } } }); +jest.useFakeTimers().setSystemTime(new Date("2024-08-01")); + describe("Rio Cinema", () => { describe("when no movies provided", () => { it("returns an empty list of events", async () => { diff --git a/cinemas/thecastlecinema.com/tests/mock-data/movie-with-local-screenings.txt b/cinemas/thecastlecinema.com/tests/mock-data/movie-with-local-screenings.txt index c296fd1..bb666be 100644 --- a/cinemas/thecastlecinema.com/tests/mock-data/movie-with-local-screenings.txt +++ b/cinemas/thecastlecinema.com/tests/mock-data/movie-with-local-screenings.txt @@ -4,12 +4,9 @@
MENU
-See absolutely everything that's going on at The Castle Cinema, by date.
That's it for now.
-
Want to be the first to hear about new shows as they're added? Sign up below.
That's it for now.
Want to be the first to hear about new shows as they're added? Sign up below.