habitica/test/content/index.test.js

155 lines
5.7 KiB
JavaScript
Raw Normal View History

Squashed commit of the following: commit 28193f86fb7ed6647fb5e1c6469f71a9bb980c38 Author: Phillip Thelen <phillip@habitica.com> Date: Fri Jun 21 11:12:18 2024 +0200 Fix serving memoized content commit 877fe482252db78b69050b13274da147ede23769 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 12:23:24 2024 +0200 correctly memoize conent api commit e0f6f79c5b49d2b6eae7e5c02dd90ac7ad6ea397 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 10:11:27 2024 +0200 don’t build multiple times on heroku commit f62254d68e2859990a6e80cd5b64d3385a6dea60 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:40:20 2024 +0200 fix client command commit d054e6fc1650fbe6df14b62025f0470a15e91883 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:36:57 2024 +0200 correct build call commit 7231f699c1e9cc4fc873428863cff0c14a4b6b3f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:32:32 2024 +0200 try setting up with heroku buildpack commit 1dae0793fde402e15c9e2eba2b21df999933282f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:50:32 2024 +0200 call gulp build:prod commit f18fbe86b61fa282baf38196313fe07837b173cc Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:40:53 2024 +0200 build client commit 61a61724cae017aaaf912c037796bd2e5064ec87 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:33:18 2024 +0200 testing commit 93cf30eb184a74f85751750ab6e5033db3d2fafa Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:20:25 2024 +0200 integration fix commit cff08adcd0290907281e5db873b9087d7de83e26 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:13:20 2024 +0200 specify dev docker file commit 4da2ed4a1f8d017ad3b6ac4e869746e7beaea419 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:10:07 2024 +0200 initialize stub commit 11c5b26c594254083fa260a1d0920242d67e23b7 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:08:45 2024 +0200 test heroku file commit ac85bb2e2da846b069826a621e975a710038313d Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:03:15 2024 +0200 fix stub reference commit 74dfb2710ff1b246d788d729149062f6f0b77787 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:01:27 2024 +0200 test fixes commit 8dbd3c3db15aac5c3defd294b6c6613cf80136da Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:37:04 2024 +0200 fix canOwn test commit 74b3b348ff6901e889ef88fd7531d6800d12ab1a Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:32:31 2024 +0200 fix buy test commit 3386d61fdee32e79a6a53939f22e26d3942eaa7f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:30:37 2024 +0200 fix debug tests commit 19da14531ca64a18dd68cefe1ada3f2ed1066622 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:25 2024 +0200 add chameleon to featured quests commit 254dd80f2479086637c7cafa9522cf6155b3868f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:14 2024 +0200 fix import commit 0bc3f16b4b03f88cc5c78fad5aa8d38cfdb9324b Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:22 2024 +0200 add new content to new release file commit 5184973bd50fb1f4bf17ab054aa7a5836086a5e1 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:11 2024 +0200 fix release date tests commit b6accca5cae1bbb33c450e4462095113cfebe480 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:06 2024 +0200 fix armoire tests commit fec68e621147e31c6ba5370ce0126d7e9b86461c Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:02:03 2024 +0200 fix tests commit fc63c906ddf4956fbe40543b66cb65cf570de36b Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:44:21 2024 +0200 Improve test coverage commit 3333f8f0f59d0a69fcd715ee3f690518f7a710b5 Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:24:59 2024 +0200 allow hatching potions to have a release date commit 89a3ac3ddebf8e949f584c39092e0cc961cde04a Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:11:38 2024 +0200 allow eggs to have a release date # Conflicts: # test/content/armoire.test.js commit 16551ec83fdcb3e6bb31e4665588c83aa5af42ba Merge: f5f4974a73 2645bf6023 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:03:12 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 2645bf60239a838d5a506f69ca7c8ce38042bf25 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:02:47 2024 -0400 update habitica images commit f5f4974a733fc3ebad1dd5da77bb44b48e91b7cc Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 14:58:13 2024 -0400 update habitica-images commit 162e337d14a372f523fbf9903bdddd23142e0d79 Merge: f2506c3231 21a7d36b7b Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:46:03 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 21a7d36b7ba1d86e30b60e25d778b01062ed11ba Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:45:09 2024 -0400 update sprites commit f2506c32316df6836ee19489320b289f4dc97a35 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:24:21 2024 -0400 updated sprites css commit d47641e25a6dfb9b62f1c10d810e80eb0990ea20 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 12:46:59 2024 -0400 typo fix commit fb8479ad1e887b7f94dd6eec47980d4da593bee9 Author: CuriousMagpie <eilatan@gmail.com> Date: Mon Jun 17 13:44:36 2024 -0400 finish July prebuild commit 3810cf3ef3c492bda8d343596bf1a17f9fc1e36e Author: CuriousMagpie <eilatan@gmail.com> Date: Fri Jun 14 10:42:47 2024 -0400 add chameleon quest commit d05da3722ce1d86a840d6f73b4ef78309c84a2f6 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 17:12:43 2024 -0400 add June background notes commit b8a3440ef2fd0bf26e1305e749bcefab2c446d84 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 16:40:04 2024 -0400 fix mystery item and background description commit 44d63032d81ac58aded8c4c856df7fe5d89f5ef4 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 15:38:23 2024 -0400 add subscriber gear, enchanted armoire, and background commit 9d7da91ec60d84b7ec8f1792f2601bcc863c5a31 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 14:44:59 2024 -0400 add sprites
2024-06-28 14:49:08 +00:00
import content from '../../website/common/script/content';
describe('content index', () => {
let clock;
afterEach(() => {
if (clock) {
clock.restore();
}
});
it('Releases eggs when appropriate without needing restarting', () => {
clock = sinon.useFakeTimers(new Date('2024-06-20'));
const mayEggs = content.eggs;
expect(mayEggs.Chameleon).to.not.exist;
clock.restore();
clock = sinon.useFakeTimers(new Date('2024-07-20'));
const juneEggs = content.eggs;
expect(juneEggs.Chameleon).to.exist;
expect(Object.keys(mayEggs).length, '').to.equal(Object.keys(juneEggs).length - 1);
});
it('Releases hatching potions when appropriate without needing restarting', () => {
clock = sinon.useFakeTimers(new Date('2024-05-20'));
const mayHatchingPotions = content.hatchingPotions;
expect(mayHatchingPotions.Koi).to.not.exist;
clock.restore();
clock = sinon.useFakeTimers(new Date('2024-06-20'));
const juneHatchingPotions = content.hatchingPotions;
expect(juneHatchingPotions.Koi).to.exist;
expect(Object.keys(mayHatchingPotions).length, '').to.equal(Object.keys(juneHatchingPotions).length - 1);
});
it('Releases armoire gear when appropriate without needing restarting', () => {
clock = sinon.useFakeTimers(new Date('2024-06-20'));
const juneGear = content.gear.flat;
expect(juneGear.armor_armoire_corsairsCoatAndCape).to.not.exist;
clock.restore();
clock = sinon.useFakeTimers(new Date('2024-07-10'));
const julyGear = content.gear.flat;
expect(julyGear.armor_armoire_corsairsCoatAndCape).to.exist;
expect(Object.keys(juneGear).length, '').to.equal(Object.keys(julyGear).length - 3);
});
it('Releases pets when appropriate without needing restarting', () => {
Squashed commit of the following: commit 28193f86fb7ed6647fb5e1c6469f71a9bb980c38 Author: Phillip Thelen <phillip@habitica.com> Date: Fri Jun 21 11:12:18 2024 +0200 Fix serving memoized content commit 877fe482252db78b69050b13274da147ede23769 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 12:23:24 2024 +0200 correctly memoize conent api commit e0f6f79c5b49d2b6eae7e5c02dd90ac7ad6ea397 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 10:11:27 2024 +0200 don’t build multiple times on heroku commit f62254d68e2859990a6e80cd5b64d3385a6dea60 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:40:20 2024 +0200 fix client command commit d054e6fc1650fbe6df14b62025f0470a15e91883 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:36:57 2024 +0200 correct build call commit 7231f699c1e9cc4fc873428863cff0c14a4b6b3f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:32:32 2024 +0200 try setting up with heroku buildpack commit 1dae0793fde402e15c9e2eba2b21df999933282f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:50:32 2024 +0200 call gulp build:prod commit f18fbe86b61fa282baf38196313fe07837b173cc Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:40:53 2024 +0200 build client commit 61a61724cae017aaaf912c037796bd2e5064ec87 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:33:18 2024 +0200 testing commit 93cf30eb184a74f85751750ab6e5033db3d2fafa Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:20:25 2024 +0200 integration fix commit cff08adcd0290907281e5db873b9087d7de83e26 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:13:20 2024 +0200 specify dev docker file commit 4da2ed4a1f8d017ad3b6ac4e869746e7beaea419 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:10:07 2024 +0200 initialize stub commit 11c5b26c594254083fa260a1d0920242d67e23b7 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:08:45 2024 +0200 test heroku file commit ac85bb2e2da846b069826a621e975a710038313d Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:03:15 2024 +0200 fix stub reference commit 74dfb2710ff1b246d788d729149062f6f0b77787 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:01:27 2024 +0200 test fixes commit 8dbd3c3db15aac5c3defd294b6c6613cf80136da Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:37:04 2024 +0200 fix canOwn test commit 74b3b348ff6901e889ef88fd7531d6800d12ab1a Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:32:31 2024 +0200 fix buy test commit 3386d61fdee32e79a6a53939f22e26d3942eaa7f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:30:37 2024 +0200 fix debug tests commit 19da14531ca64a18dd68cefe1ada3f2ed1066622 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:25 2024 +0200 add chameleon to featured quests commit 254dd80f2479086637c7cafa9522cf6155b3868f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:14 2024 +0200 fix import commit 0bc3f16b4b03f88cc5c78fad5aa8d38cfdb9324b Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:22 2024 +0200 add new content to new release file commit 5184973bd50fb1f4bf17ab054aa7a5836086a5e1 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:11 2024 +0200 fix release date tests commit b6accca5cae1bbb33c450e4462095113cfebe480 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:06 2024 +0200 fix armoire tests commit fec68e621147e31c6ba5370ce0126d7e9b86461c Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:02:03 2024 +0200 fix tests commit fc63c906ddf4956fbe40543b66cb65cf570de36b Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:44:21 2024 +0200 Improve test coverage commit 3333f8f0f59d0a69fcd715ee3f690518f7a710b5 Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:24:59 2024 +0200 allow hatching potions to have a release date commit 89a3ac3ddebf8e949f584c39092e0cc961cde04a Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:11:38 2024 +0200 allow eggs to have a release date # Conflicts: # test/content/armoire.test.js commit 16551ec83fdcb3e6bb31e4665588c83aa5af42ba Merge: f5f4974a73 2645bf6023 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:03:12 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 2645bf60239a838d5a506f69ca7c8ce38042bf25 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:02:47 2024 -0400 update habitica images commit f5f4974a733fc3ebad1dd5da77bb44b48e91b7cc Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 14:58:13 2024 -0400 update habitica-images commit 162e337d14a372f523fbf9903bdddd23142e0d79 Merge: f2506c3231 21a7d36b7b Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:46:03 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 21a7d36b7ba1d86e30b60e25d778b01062ed11ba Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:45:09 2024 -0400 update sprites commit f2506c32316df6836ee19489320b289f4dc97a35 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:24:21 2024 -0400 updated sprites css commit d47641e25a6dfb9b62f1c10d810e80eb0990ea20 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 12:46:59 2024 -0400 typo fix commit fb8479ad1e887b7f94dd6eec47980d4da593bee9 Author: CuriousMagpie <eilatan@gmail.com> Date: Mon Jun 17 13:44:36 2024 -0400 finish July prebuild commit 3810cf3ef3c492bda8d343596bf1a17f9fc1e36e Author: CuriousMagpie <eilatan@gmail.com> Date: Fri Jun 14 10:42:47 2024 -0400 add chameleon quest commit d05da3722ce1d86a840d6f73b4ef78309c84a2f6 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 17:12:43 2024 -0400 add June background notes commit b8a3440ef2fd0bf26e1305e749bcefab2c446d84 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 16:40:04 2024 -0400 fix mystery item and background description commit 44d63032d81ac58aded8c4c856df7fe5d89f5ef4 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 15:38:23 2024 -0400 add subscriber gear, enchanted armoire, and background commit 9d7da91ec60d84b7ec8f1792f2601bcc863c5a31 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 14:44:59 2024 -0400 add sprites
2024-06-28 14:49:08 +00:00
clock = sinon.useFakeTimers(new Date('2024-06-20'));
const junePets = content.petInfo;
expect(junePets['Chameleon-Base']).to.not.exist;
clock.restore();
clock = sinon.useFakeTimers(new Date('2024-07-18'));
Squashed commit of the following: commit 28193f86fb7ed6647fb5e1c6469f71a9bb980c38 Author: Phillip Thelen <phillip@habitica.com> Date: Fri Jun 21 11:12:18 2024 +0200 Fix serving memoized content commit 877fe482252db78b69050b13274da147ede23769 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 12:23:24 2024 +0200 correctly memoize conent api commit e0f6f79c5b49d2b6eae7e5c02dd90ac7ad6ea397 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 10:11:27 2024 +0200 don’t build multiple times on heroku commit f62254d68e2859990a6e80cd5b64d3385a6dea60 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:40:20 2024 +0200 fix client command commit d054e6fc1650fbe6df14b62025f0470a15e91883 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:36:57 2024 +0200 correct build call commit 7231f699c1e9cc4fc873428863cff0c14a4b6b3f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:32:32 2024 +0200 try setting up with heroku buildpack commit 1dae0793fde402e15c9e2eba2b21df999933282f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:50:32 2024 +0200 call gulp build:prod commit f18fbe86b61fa282baf38196313fe07837b173cc Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:40:53 2024 +0200 build client commit 61a61724cae017aaaf912c037796bd2e5064ec87 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:33:18 2024 +0200 testing commit 93cf30eb184a74f85751750ab6e5033db3d2fafa Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:20:25 2024 +0200 integration fix commit cff08adcd0290907281e5db873b9087d7de83e26 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:13:20 2024 +0200 specify dev docker file commit 4da2ed4a1f8d017ad3b6ac4e869746e7beaea419 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:10:07 2024 +0200 initialize stub commit 11c5b26c594254083fa260a1d0920242d67e23b7 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:08:45 2024 +0200 test heroku file commit ac85bb2e2da846b069826a621e975a710038313d Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:03:15 2024 +0200 fix stub reference commit 74dfb2710ff1b246d788d729149062f6f0b77787 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:01:27 2024 +0200 test fixes commit 8dbd3c3db15aac5c3defd294b6c6613cf80136da Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:37:04 2024 +0200 fix canOwn test commit 74b3b348ff6901e889ef88fd7531d6800d12ab1a Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:32:31 2024 +0200 fix buy test commit 3386d61fdee32e79a6a53939f22e26d3942eaa7f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:30:37 2024 +0200 fix debug tests commit 19da14531ca64a18dd68cefe1ada3f2ed1066622 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:25 2024 +0200 add chameleon to featured quests commit 254dd80f2479086637c7cafa9522cf6155b3868f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:14 2024 +0200 fix import commit 0bc3f16b4b03f88cc5c78fad5aa8d38cfdb9324b Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:22 2024 +0200 add new content to new release file commit 5184973bd50fb1f4bf17ab054aa7a5836086a5e1 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:11 2024 +0200 fix release date tests commit b6accca5cae1bbb33c450e4462095113cfebe480 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:06 2024 +0200 fix armoire tests commit fec68e621147e31c6ba5370ce0126d7e9b86461c Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:02:03 2024 +0200 fix tests commit fc63c906ddf4956fbe40543b66cb65cf570de36b Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:44:21 2024 +0200 Improve test coverage commit 3333f8f0f59d0a69fcd715ee3f690518f7a710b5 Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:24:59 2024 +0200 allow hatching potions to have a release date commit 89a3ac3ddebf8e949f584c39092e0cc961cde04a Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:11:38 2024 +0200 allow eggs to have a release date # Conflicts: # test/content/armoire.test.js commit 16551ec83fdcb3e6bb31e4665588c83aa5af42ba Merge: f5f4974a73 2645bf6023 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:03:12 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 2645bf60239a838d5a506f69ca7c8ce38042bf25 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:02:47 2024 -0400 update habitica images commit f5f4974a733fc3ebad1dd5da77bb44b48e91b7cc Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 14:58:13 2024 -0400 update habitica-images commit 162e337d14a372f523fbf9903bdddd23142e0d79 Merge: f2506c3231 21a7d36b7b Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:46:03 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 21a7d36b7ba1d86e30b60e25d778b01062ed11ba Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:45:09 2024 -0400 update sprites commit f2506c32316df6836ee19489320b289f4dc97a35 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:24:21 2024 -0400 updated sprites css commit d47641e25a6dfb9b62f1c10d810e80eb0990ea20 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 12:46:59 2024 -0400 typo fix commit fb8479ad1e887b7f94dd6eec47980d4da593bee9 Author: CuriousMagpie <eilatan@gmail.com> Date: Mon Jun 17 13:44:36 2024 -0400 finish July prebuild commit 3810cf3ef3c492bda8d343596bf1a17f9fc1e36e Author: CuriousMagpie <eilatan@gmail.com> Date: Fri Jun 14 10:42:47 2024 -0400 add chameleon quest commit d05da3722ce1d86a840d6f73b4ef78309c84a2f6 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 17:12:43 2024 -0400 add June background notes commit b8a3440ef2fd0bf26e1305e749bcefab2c446d84 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 16:40:04 2024 -0400 fix mystery item and background description commit 44d63032d81ac58aded8c4c856df7fe5d89f5ef4 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 15:38:23 2024 -0400 add subscriber gear, enchanted armoire, and background commit 9d7da91ec60d84b7ec8f1792f2601bcc863c5a31 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 14:44:59 2024 -0400 add sprites
2024-06-28 14:49:08 +00:00
const julyPets = content.petInfo;
expect(julyPets['Chameleon-Base']).to.exist;
expect(Object.keys(junePets).length, '').to.equal(Object.keys(julyPets).length - 10);
});
it('Releases mounts when appropriate without needing restarting', () => {
Squashed commit of the following: commit 28193f86fb7ed6647fb5e1c6469f71a9bb980c38 Author: Phillip Thelen <phillip@habitica.com> Date: Fri Jun 21 11:12:18 2024 +0200 Fix serving memoized content commit 877fe482252db78b69050b13274da147ede23769 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 12:23:24 2024 +0200 correctly memoize conent api commit e0f6f79c5b49d2b6eae7e5c02dd90ac7ad6ea397 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 10:11:27 2024 +0200 don’t build multiple times on heroku commit f62254d68e2859990a6e80cd5b64d3385a6dea60 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:40:20 2024 +0200 fix client command commit d054e6fc1650fbe6df14b62025f0470a15e91883 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:36:57 2024 +0200 correct build call commit 7231f699c1e9cc4fc873428863cff0c14a4b6b3f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:32:32 2024 +0200 try setting up with heroku buildpack commit 1dae0793fde402e15c9e2eba2b21df999933282f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:50:32 2024 +0200 call gulp build:prod commit f18fbe86b61fa282baf38196313fe07837b173cc Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:40:53 2024 +0200 build client commit 61a61724cae017aaaf912c037796bd2e5064ec87 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:33:18 2024 +0200 testing commit 93cf30eb184a74f85751750ab6e5033db3d2fafa Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:20:25 2024 +0200 integration fix commit cff08adcd0290907281e5db873b9087d7de83e26 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:13:20 2024 +0200 specify dev docker file commit 4da2ed4a1f8d017ad3b6ac4e869746e7beaea419 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:10:07 2024 +0200 initialize stub commit 11c5b26c594254083fa260a1d0920242d67e23b7 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:08:45 2024 +0200 test heroku file commit ac85bb2e2da846b069826a621e975a710038313d Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:03:15 2024 +0200 fix stub reference commit 74dfb2710ff1b246d788d729149062f6f0b77787 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:01:27 2024 +0200 test fixes commit 8dbd3c3db15aac5c3defd294b6c6613cf80136da Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:37:04 2024 +0200 fix canOwn test commit 74b3b348ff6901e889ef88fd7531d6800d12ab1a Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:32:31 2024 +0200 fix buy test commit 3386d61fdee32e79a6a53939f22e26d3942eaa7f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:30:37 2024 +0200 fix debug tests commit 19da14531ca64a18dd68cefe1ada3f2ed1066622 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:25 2024 +0200 add chameleon to featured quests commit 254dd80f2479086637c7cafa9522cf6155b3868f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:14 2024 +0200 fix import commit 0bc3f16b4b03f88cc5c78fad5aa8d38cfdb9324b Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:22 2024 +0200 add new content to new release file commit 5184973bd50fb1f4bf17ab054aa7a5836086a5e1 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:11 2024 +0200 fix release date tests commit b6accca5cae1bbb33c450e4462095113cfebe480 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:06 2024 +0200 fix armoire tests commit fec68e621147e31c6ba5370ce0126d7e9b86461c Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:02:03 2024 +0200 fix tests commit fc63c906ddf4956fbe40543b66cb65cf570de36b Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:44:21 2024 +0200 Improve test coverage commit 3333f8f0f59d0a69fcd715ee3f690518f7a710b5 Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:24:59 2024 +0200 allow hatching potions to have a release date commit 89a3ac3ddebf8e949f584c39092e0cc961cde04a Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:11:38 2024 +0200 allow eggs to have a release date # Conflicts: # test/content/armoire.test.js commit 16551ec83fdcb3e6bb31e4665588c83aa5af42ba Merge: f5f4974a73 2645bf6023 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:03:12 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 2645bf60239a838d5a506f69ca7c8ce38042bf25 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:02:47 2024 -0400 update habitica images commit f5f4974a733fc3ebad1dd5da77bb44b48e91b7cc Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 14:58:13 2024 -0400 update habitica-images commit 162e337d14a372f523fbf9903bdddd23142e0d79 Merge: f2506c3231 21a7d36b7b Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:46:03 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 21a7d36b7ba1d86e30b60e25d778b01062ed11ba Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:45:09 2024 -0400 update sprites commit f2506c32316df6836ee19489320b289f4dc97a35 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:24:21 2024 -0400 updated sprites css commit d47641e25a6dfb9b62f1c10d810e80eb0990ea20 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 12:46:59 2024 -0400 typo fix commit fb8479ad1e887b7f94dd6eec47980d4da593bee9 Author: CuriousMagpie <eilatan@gmail.com> Date: Mon Jun 17 13:44:36 2024 -0400 finish July prebuild commit 3810cf3ef3c492bda8d343596bf1a17f9fc1e36e Author: CuriousMagpie <eilatan@gmail.com> Date: Fri Jun 14 10:42:47 2024 -0400 add chameleon quest commit d05da3722ce1d86a840d6f73b4ef78309c84a2f6 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 17:12:43 2024 -0400 add June background notes commit b8a3440ef2fd0bf26e1305e749bcefab2c446d84 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 16:40:04 2024 -0400 fix mystery item and background description commit 44d63032d81ac58aded8c4c856df7fe5d89f5ef4 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 15:38:23 2024 -0400 add subscriber gear, enchanted armoire, and background commit 9d7da91ec60d84b7ec8f1792f2601bcc863c5a31 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 14:44:59 2024 -0400 add sprites
2024-06-28 14:49:08 +00:00
clock = sinon.useFakeTimers(new Date('2024-06-20'));
const juneMounts = content.mountInfo;
expect(juneMounts['Chameleon-Base']).to.not.exist;
clock.restore();
clock = sinon.useFakeTimers(new Date('2024-07-18'));
Squashed commit of the following: commit 28193f86fb7ed6647fb5e1c6469f71a9bb980c38 Author: Phillip Thelen <phillip@habitica.com> Date: Fri Jun 21 11:12:18 2024 +0200 Fix serving memoized content commit 877fe482252db78b69050b13274da147ede23769 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 12:23:24 2024 +0200 correctly memoize conent api commit e0f6f79c5b49d2b6eae7e5c02dd90ac7ad6ea397 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 10:11:27 2024 +0200 don’t build multiple times on heroku commit f62254d68e2859990a6e80cd5b64d3385a6dea60 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:40:20 2024 +0200 fix client command commit d054e6fc1650fbe6df14b62025f0470a15e91883 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:36:57 2024 +0200 correct build call commit 7231f699c1e9cc4fc873428863cff0c14a4b6b3f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:32:32 2024 +0200 try setting up with heroku buildpack commit 1dae0793fde402e15c9e2eba2b21df999933282f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:50:32 2024 +0200 call gulp build:prod commit f18fbe86b61fa282baf38196313fe07837b173cc Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:40:53 2024 +0200 build client commit 61a61724cae017aaaf912c037796bd2e5064ec87 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:33:18 2024 +0200 testing commit 93cf30eb184a74f85751750ab6e5033db3d2fafa Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:20:25 2024 +0200 integration fix commit cff08adcd0290907281e5db873b9087d7de83e26 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:13:20 2024 +0200 specify dev docker file commit 4da2ed4a1f8d017ad3b6ac4e869746e7beaea419 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:10:07 2024 +0200 initialize stub commit 11c5b26c594254083fa260a1d0920242d67e23b7 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:08:45 2024 +0200 test heroku file commit ac85bb2e2da846b069826a621e975a710038313d Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:03:15 2024 +0200 fix stub reference commit 74dfb2710ff1b246d788d729149062f6f0b77787 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:01:27 2024 +0200 test fixes commit 8dbd3c3db15aac5c3defd294b6c6613cf80136da Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:37:04 2024 +0200 fix canOwn test commit 74b3b348ff6901e889ef88fd7531d6800d12ab1a Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:32:31 2024 +0200 fix buy test commit 3386d61fdee32e79a6a53939f22e26d3942eaa7f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:30:37 2024 +0200 fix debug tests commit 19da14531ca64a18dd68cefe1ada3f2ed1066622 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:25 2024 +0200 add chameleon to featured quests commit 254dd80f2479086637c7cafa9522cf6155b3868f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:14 2024 +0200 fix import commit 0bc3f16b4b03f88cc5c78fad5aa8d38cfdb9324b Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:22 2024 +0200 add new content to new release file commit 5184973bd50fb1f4bf17ab054aa7a5836086a5e1 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:11 2024 +0200 fix release date tests commit b6accca5cae1bbb33c450e4462095113cfebe480 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:06 2024 +0200 fix armoire tests commit fec68e621147e31c6ba5370ce0126d7e9b86461c Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:02:03 2024 +0200 fix tests commit fc63c906ddf4956fbe40543b66cb65cf570de36b Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:44:21 2024 +0200 Improve test coverage commit 3333f8f0f59d0a69fcd715ee3f690518f7a710b5 Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:24:59 2024 +0200 allow hatching potions to have a release date commit 89a3ac3ddebf8e949f584c39092e0cc961cde04a Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:11:38 2024 +0200 allow eggs to have a release date # Conflicts: # test/content/armoire.test.js commit 16551ec83fdcb3e6bb31e4665588c83aa5af42ba Merge: f5f4974a73 2645bf6023 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:03:12 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 2645bf60239a838d5a506f69ca7c8ce38042bf25 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:02:47 2024 -0400 update habitica images commit f5f4974a733fc3ebad1dd5da77bb44b48e91b7cc Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 14:58:13 2024 -0400 update habitica-images commit 162e337d14a372f523fbf9903bdddd23142e0d79 Merge: f2506c3231 21a7d36b7b Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:46:03 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 21a7d36b7ba1d86e30b60e25d778b01062ed11ba Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:45:09 2024 -0400 update sprites commit f2506c32316df6836ee19489320b289f4dc97a35 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:24:21 2024 -0400 updated sprites css commit d47641e25a6dfb9b62f1c10d810e80eb0990ea20 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 12:46:59 2024 -0400 typo fix commit fb8479ad1e887b7f94dd6eec47980d4da593bee9 Author: CuriousMagpie <eilatan@gmail.com> Date: Mon Jun 17 13:44:36 2024 -0400 finish July prebuild commit 3810cf3ef3c492bda8d343596bf1a17f9fc1e36e Author: CuriousMagpie <eilatan@gmail.com> Date: Fri Jun 14 10:42:47 2024 -0400 add chameleon quest commit d05da3722ce1d86a840d6f73b4ef78309c84a2f6 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 17:12:43 2024 -0400 add June background notes commit b8a3440ef2fd0bf26e1305e749bcefab2c446d84 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 16:40:04 2024 -0400 fix mystery item and background description commit 44d63032d81ac58aded8c4c856df7fe5d89f5ef4 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 15:38:23 2024 -0400 add subscriber gear, enchanted armoire, and background commit 9d7da91ec60d84b7ec8f1792f2601bcc863c5a31 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 14:44:59 2024 -0400 add sprites
2024-06-28 14:49:08 +00:00
const julyMounts = content.mountInfo;
expect(julyMounts['Chameleon-Base']).to.exist;
expect(Object.keys(juneMounts).length, '').to.equal(Object.keys(julyMounts).length - 10);
});
it('marks regular food as buyable and droppable without any events', () => {
clock = sinon.useFakeTimers(new Date('2024-06-20'));
const { food } = content;
Object.keys(food).forEach(key => {
if (key === 'Saddle') {
expect(food[key].canBuy(), `${key} canBuy`).to.be.true;
expect(food[key].canDrop, `${key} canDrop`).to.be.false;
return;
}
let expected = true;
if (key.startsWith('Cake_')) {
expected = false;
} else if (key.startsWith('Candy_')) {
expected = false;
} else if (key.startsWith('Pie_')) {
expected = false;
}
expect(food[key].canBuy(), `${key} canBuy`).to.equal(expected);
expect(food[key].canDrop, `${key} canDrop`).to.equal(expected);
});
});
it('marks candy as buyable and droppable during habitoween', () => {
clock = sinon.useFakeTimers(new Date('2024-10-31'));
const { food } = content;
Object.keys(food).forEach(key => {
if (key === 'Saddle') {
expect(food[key].canBuy(), `${key} canBuy`).to.be.true;
expect(food[key].canDrop, `${key} canDrop`).to.be.false;
return;
}
let expected = false;
if (key.startsWith('Cake_')) {
expected = false;
} else if (key.startsWith('Candy_')) {
expected = true;
} else if (key.startsWith('Pie_')) {
expected = false;
}
expect(food[key].canBuy(), `${key} canBuy`).to.equal(expected);
expect(food[key].canDrop, `${key} canDrop`).to.equal(expected);
});
});
it('marks cake as buyable and droppable during birthday', () => {
clock = sinon.useFakeTimers(new Date('2024-01-31'));
const { food } = content;
Object.keys(food).forEach(key => {
if (key === 'Saddle') {
expect(food[key].canBuy(), `${key} canBuy`).to.be.true;
expect(food[key].canDrop, `${key} canDrop`).to.be.false;
return;
}
let expected = false;
if (key.startsWith('Cake_')) {
expected = true;
} else if (key.startsWith('Candy_')) {
expected = false;
} else if (key.startsWith('Pie_')) {
expected = false;
}
expect(food[key].canBuy(), `${key} canBuy`).to.equal(expected);
expect(food[key].canDrop, `${key} canDrop`).to.equal(expected);
});
});
it('marks pie as buyable and droppable during pi day', () => {
2024-09-05 15:04:08 +00:00
clock = sinon.useFakeTimers(new Date('2024-03-15'));
Squashed commit of the following: commit 28193f86fb7ed6647fb5e1c6469f71a9bb980c38 Author: Phillip Thelen <phillip@habitica.com> Date: Fri Jun 21 11:12:18 2024 +0200 Fix serving memoized content commit 877fe482252db78b69050b13274da147ede23769 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 12:23:24 2024 +0200 correctly memoize conent api commit e0f6f79c5b49d2b6eae7e5c02dd90ac7ad6ea397 Author: Phillip Thelen <phillip@habitica.com> Date: Thu Jun 20 10:11:27 2024 +0200 don’t build multiple times on heroku commit f62254d68e2859990a6e80cd5b64d3385a6dea60 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:40:20 2024 +0200 fix client command commit d054e6fc1650fbe6df14b62025f0470a15e91883 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:36:57 2024 +0200 correct build call commit 7231f699c1e9cc4fc873428863cff0c14a4b6b3f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 19:32:32 2024 +0200 try setting up with heroku buildpack commit 1dae0793fde402e15c9e2eba2b21df999933282f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:50:32 2024 +0200 call gulp build:prod commit f18fbe86b61fa282baf38196313fe07837b173cc Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:40:53 2024 +0200 build client commit 61a61724cae017aaaf912c037796bd2e5064ec87 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:33:18 2024 +0200 testing commit 93cf30eb184a74f85751750ab6e5033db3d2fafa Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:20:25 2024 +0200 integration fix commit cff08adcd0290907281e5db873b9087d7de83e26 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:13:20 2024 +0200 specify dev docker file commit 4da2ed4a1f8d017ad3b6ac4e869746e7beaea419 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:10:07 2024 +0200 initialize stub commit 11c5b26c594254083fa260a1d0920242d67e23b7 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:08:45 2024 +0200 test heroku file commit ac85bb2e2da846b069826a621e975a710038313d Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:03:15 2024 +0200 fix stub reference commit 74dfb2710ff1b246d788d729149062f6f0b77787 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 18:01:27 2024 +0200 test fixes commit 8dbd3c3db15aac5c3defd294b6c6613cf80136da Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:37:04 2024 +0200 fix canOwn test commit 74b3b348ff6901e889ef88fd7531d6800d12ab1a Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:32:31 2024 +0200 fix buy test commit 3386d61fdee32e79a6a53939f22e26d3942eaa7f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:30:37 2024 +0200 fix debug tests commit 19da14531ca64a18dd68cefe1ada3f2ed1066622 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:25 2024 +0200 add chameleon to featured quests commit 254dd80f2479086637c7cafa9522cf6155b3868f Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 17:05:14 2024 +0200 fix import commit 0bc3f16b4b03f88cc5c78fad5aa8d38cfdb9324b Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:22 2024 +0200 add new content to new release file commit 5184973bd50fb1f4bf17ab054aa7a5836086a5e1 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:11 2024 +0200 fix release date tests commit b6accca5cae1bbb33c450e4462095113cfebe480 Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:33:06 2024 +0200 fix armoire tests commit fec68e621147e31c6ba5370ce0126d7e9b86461c Author: Phillip Thelen <phillip@habitica.com> Date: Wed Jun 19 16:02:03 2024 +0200 fix tests commit fc63c906ddf4956fbe40543b66cb65cf570de36b Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:44:21 2024 +0200 Improve test coverage commit 3333f8f0f59d0a69fcd715ee3f690518f7a710b5 Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:24:59 2024 +0200 allow hatching potions to have a release date commit 89a3ac3ddebf8e949f584c39092e0cc961cde04a Author: Phillip Thelen <phillip@habitica.com> Date: Mon Jun 10 14:11:38 2024 +0200 allow eggs to have a release date # Conflicts: # test/content/armoire.test.js commit 16551ec83fdcb3e6bb31e4665588c83aa5af42ba Merge: f5f4974a73 2645bf6023 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:03:12 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 2645bf60239a838d5a506f69ca7c8ce38042bf25 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 15:02:47 2024 -0400 update habitica images commit f5f4974a733fc3ebad1dd5da77bb44b48e91b7cc Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 14:58:13 2024 -0400 update habitica-images commit 162e337d14a372f523fbf9903bdddd23142e0d79 Merge: f2506c3231 21a7d36b7b Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:46:03 2024 -0400 Merge branch '2024-07-content-prebuild' into subs-private commit 21a7d36b7ba1d86e30b60e25d778b01062ed11ba Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:45:09 2024 -0400 update sprites commit f2506c32316df6836ee19489320b289f4dc97a35 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 13:24:21 2024 -0400 updated sprites css commit d47641e25a6dfb9b62f1c10d810e80eb0990ea20 Author: CuriousMagpie <eilatan@gmail.com> Date: Tue Jun 18 12:46:59 2024 -0400 typo fix commit fb8479ad1e887b7f94dd6eec47980d4da593bee9 Author: CuriousMagpie <eilatan@gmail.com> Date: Mon Jun 17 13:44:36 2024 -0400 finish July prebuild commit 3810cf3ef3c492bda8d343596bf1a17f9fc1e36e Author: CuriousMagpie <eilatan@gmail.com> Date: Fri Jun 14 10:42:47 2024 -0400 add chameleon quest commit d05da3722ce1d86a840d6f73b4ef78309c84a2f6 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 17:12:43 2024 -0400 add June background notes commit b8a3440ef2fd0bf26e1305e749bcefab2c446d84 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 16:40:04 2024 -0400 fix mystery item and background description commit 44d63032d81ac58aded8c4c856df7fe5d89f5ef4 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 15:38:23 2024 -0400 add subscriber gear, enchanted armoire, and background commit 9d7da91ec60d84b7ec8f1792f2601bcc863c5a31 Author: CuriousMagpie <eilatan@gmail.com> Date: Thu Jun 13 14:44:59 2024 -0400 add sprites
2024-06-28 14:49:08 +00:00
const { food } = content;
Object.keys(food).forEach(key => {
if (key === 'Saddle') {
expect(food[key].canBuy(), `${key} canBuy`).to.be.true;
expect(food[key].canDrop, `${key} canDrop`).to.be.false;
return;
}
let expected = false;
if (key.startsWith('Cake_')) {
expected = false;
} else if (key.startsWith('Candy_')) {
expected = false;
} else if (key.startsWith('Pie_')) {
expected = true;
}
expect(food[key].canBuy(), `${key} canBuy`).to.equal(expected);
expect(food[key].canDrop, `${key} canDrop`).to.equal(expected);
});
});
});