-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.4.8: Added Mirabilandia, moved Bobbejaanland, improved Movie Park …
…(Halloween)
- Loading branch information
1 parent
067adec
commit 27703e5
Showing
17 changed files
with
156 additions
and
219 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
src/parks/bobbejaanland/interfaces/bobbejaanland-api-response.interface.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/parks/parques-reunidos/bobbejaanland/bobbejaanland.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { ParquesReunidosParkService } from '../parques-reunidos-park.service'; | ||
import { ParkType, ThemePark } from '../../../_interfaces/park.interface'; | ||
|
||
@Injectable() | ||
export class BobbejaanlandService extends ParquesReunidosParkService { | ||
getInfo(): ThemePark { | ||
return { | ||
timezone: 'Europe/Amsterdam', | ||
name: 'Bobbejaanland', | ||
parkType: ParkType.THEMEPARK, | ||
image: 'https://www.bobbejaanland.be/content/dam/bjl/images/generals/KVDS-20190616-171430-NIKON%20D5-2.jpg', | ||
countryCode: 'be', | ||
description: 'Bobbejaanland is een pretpark in Lichtaart, gelegen tussen Herentals en Kasterlee in België, en is genoemd naar zijn oprichter Bobbejaan Schoepen. Het pretpark is gelegen in een moerassig gebied in de vallei van de Kleine Nete.', | ||
id: 'bobbejaanland', | ||
location: { | ||
lat: 51.2009421, | ||
lng: 4.9040014, | ||
}, | ||
}; | ||
} | ||
|
||
getStayEstablishment(): string { | ||
return 'mGvE' | ||
} | ||
|
||
supportsRestaurants(): boolean { | ||
return true; | ||
} | ||
|
||
getShowCategoryID(): string { | ||
return ''; | ||
} | ||
|
||
halloweenCategories(): (string | number)[] { | ||
return [] | ||
} | ||
|
||
getShowType(): 'new' | 'old' | 'unsupported' { | ||
return 'unsupported'; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/parks/parques-reunidos/interfaces/atracciones-response.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/parks/parques-reunidos/mirabilandia/mirabilandia.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Test, TestingModule } from '@nestjs/testing'; | ||
import { MirabilandiaService } from './mirabilandia.service'; | ||
import { ParquesReunidosTransfer } from '../parques-reunidos-transfer/parques-reunidos.transfer'; | ||
import { HttpModule } from '@nestjs/axios'; | ||
import { ConfigModule } from '@nestjs/config'; | ||
|
||
describe('MirabilandiaService', () => { | ||
let service: MirabilandiaService; | ||
|
||
beforeEach(async () => { | ||
const module: TestingModule = await Test.createTestingModule({ | ||
providers: [MirabilandiaService, ParquesReunidosTransfer], | ||
imports: [HttpModule, ConfigModule.forRoot()] | ||
}).compile(); | ||
|
||
service = module.get<MirabilandiaService>(MirabilandiaService); | ||
}); | ||
|
||
it('should be defined', () => { | ||
expect(service).toBeDefined(); | ||
}); | ||
}); |
Oops, something went wrong.