Trevor Buckner
3d3ad3f284
Small tweaks
2024-08-26 19:58:28 -04:00
G.Ambatte
ae336f1429
Add extra getCSS tests
2024-08-13 22:30:59 +12:00
G.Ambatte
5847b246ef
Add getCSS test
2024-08-13 22:05:03 +12:00
G.Ambatte
e7108947d6
Fix expected values for pageCount and renderer
2024-08-01 13:24:23 +12:00
Trevor Buckner
8221579b6a
Linting
2024-07-28 18:03:25 -04:00
Trevor Buckner
ee9f2c8c83
Remove unused CSS endpoints in favor of #3075
...
Now that we have a dedicated /theme/ route for the recursive theming, the CSS endpoint can be simpler for only getting the `style` of a single brew. #3075 already has this simpler version, but no testing, so I have copied this into a comment there for implementation when it is ready.
2024-07-28 17:53:25 -04:00
Trevor Buckner
8aa88a2e45
Add proper error popup when theme fails to load
2024-07-28 16:45:01 -04:00
Trevor Buckner
edec9369ec
Finish adding test cases
2024-07-27 19:17:19 -04:00
Trevor Buckner
b64a0c5200
Start adding tests for /theme/ endpoint
2024-07-27 03:30:51 -04:00
Trevor Buckner
8e7baca47d
Fix tests
2024-07-23 17:40:32 -04:00
Trevor Buckner
6ae249a527
Lint
2024-07-22 02:46:26 -04:00
Trevor Buckner
e222811d03
Rename engine to renderer to unify naming
...
This value is named `renderer` everywhere else. Relabeling to a consistent name.
2024-07-13 18:06:46 -04:00
Trevor Buckner
24c86dd199
Remove unused test
2024-07-10 17:49:57 -04:00
Trevor Buckner
88578a3d16
Fix failing test
2024-07-10 14:22:42 -04:00
Trevor Buckner
a247e50c9f
renaming "get" functions
...
rename `getStaticTheme` to `getStaticThemeCSS`
rename `getBrewThemeWithCSS` to `getBrewThemeCSS`
rename `getBrewThemeParent` to `getBrewThemeParentCSS`
to avoid confusion with other "get" endpoints like `getBrew`, and unify naming for endpoint functions that return CSS.
Simplify `isStaticTheme` function (getting the parent theme is handled elsewhere)
2024-07-10 14:15:03 -04:00
David Bolack
656edb07ea
Rework detection of user brews to look up themeid in static themes list before assuming is a user brew.
...
Ended up being a fairly straightforward change. A few ternaries got smooshed or inverted. Passes builtin and local tests. Need to compare on the test instance.
2024-07-08 18:12:58 -05:00
David Bolack
0945a5e47e
Merge branch 'master' into brew_themes_user_selection
2024-06-13 15:15:30 -05:00
David Bolack
f936b8b12b
Update User brew endpoint tests
2024-05-06 20:28:46 -05:00
G.Ambatte
09cf5a9b04
Fix test
2024-04-20 14:02:46 +12:00
David Bolack
57f0aefbc8
Merge branch 'master' into brew_themes_user_selection
2024-03-25 20:38:28 -05:00
G.Ambatte
7f168f35b8
Add test for locked brew
2024-03-17 21:35:03 +13:00
David Bolack
e487f9a951
Fix remaining jest issues
2024-03-06 23:27:43 -06:00
David Bolack
eb4ecf853b
Fix Jest issues I was able to understand
2024-03-06 22:50:24 -06:00
David Bolack
ae2bb3a028
Add missing style.css
2024-02-20 23:26:09 -06:00
David Bolack
c319d6bcfa
Consolidate and add theme parent walking
...
This consolidates the style/theme endpoint to a singular method, adds
interpretation of static themes, and allow parent theme recursion.
I am not 100% sure this will order styles correctly.
2024-02-20 23:15:37 -06:00
David Bolack
8e48df5de1
Partial Code coverage for new endpoints
2024-02-18 12:45:14 -06:00
Trevor Buckner
a4584dc78e
Fix spec tests
2023-07-06 00:19:23 -04:00
Trevor Buckner
8baf0fc849
Add additional test for when logged in, but not in author list
2023-06-26 23:26:59 -04:00
Sean Robertson
a7040e554a
Fix test
2023-06-27 15:19:33 +12:00
G.Ambatte
e88e7f852c
Add account check to Google File not found error
2023-06-26 20:40:11 +12:00
G.Ambatte
a3b2c6987f
Fix test
2023-06-26 18:08:52 +12:00
G.Ambatte
3d47b5a0bc
Fix test
2023-06-26 18:06:37 +12:00
G.Ambatte
4799e8b443
Fix test
2023-06-25 21:10:28 +12:00
G.Ambatte
9f4de3c66e
Fix test
2023-06-25 18:16:57 +12:00
G.Ambatte
800bff611a
Fix test
2023-06-25 18:14:12 +12:00
G.Ambatte
4c6de90d82
Fix test
2023-06-25 17:13:37 +12:00
G.Ambatte
438cb7f26d
Fix test
2023-06-25 14:41:15 +12:00
G.Ambatte
ffa240f78d
Fix test
2023-06-25 14:39:42 +12:00
G.Ambatte
71c384ee0b
Fix tests
2023-06-20 16:45:36 +12:00
Trevor Buckner
eaf7b9c4ef
Change tests from .remove() to deleteOne()
2023-04-04 17:47:25 -04:00
Trevor Buckner
cf99bd9004
Fix unit tests
2023-03-14 12:12:21 -04:00
Trevor Buckner
6a8a2f080c
Lint
2023-02-18 13:48:32 -05:00
Trevor Buckner
298a10bc42
Clean up tests
2023-02-18 13:48:02 -05:00
G.Ambatte
1fb7fe2487
Add markModified mock function to test spec
2023-02-17 17:43:21 +13:00
Trevor Buckner
4260f5197c
Update specs to expect a views prop from default brew
2023-01-30 17:15:33 -05:00
Trevor Buckner
c9241e2162
Fix Google Drive brews duplicating
2023-01-20 17:19:02 -05:00
Charlie Humphreys
a54ebabf53
fix tests after merge from master
2023-01-05 23:10:25 -06:00
Charlie Humphreys
387c468d84
add tests for deletion and address PR feedback
2023-01-05 22:56:54 -06:00
Charlie Humphreys
da9e20e96f
add more tests and merge from main
2022-12-23 00:11:46 -06:00
Charlie Humphreys
a451e562fb
add initial set of tests for api
2022-12-06 00:01:38 -06:00