mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(test): mock hashtagPreferencesService.load in profile modal tests
- Added missing `load` method to `baseHashtagPreferences` mock in `tests/profile-modal-controller.test.mjs` to fix `TypeError: this.hashtagPreferencesService.load is not a function`.
- Updated `package.json` to run `tailwindcss` directly instead of via `npx` to resolve CI build errors ("could not determine executable to run").
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
4c211cad1b
commit
70e596b314
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
||||
"start": "npm run build && npx serve",
|
||||
"serve": "npx serve",
|
||||
"build": "node scripts/build-dist.mjs",
|
||||
"build:css": "npx tailwindcss -c tailwind.config.cjs -i css/tailwind.source.css -o css/tailwind.generated.css --minify",
|
||||
"build:css": "tailwindcss -c tailwind.config.cjs -i css/tailwind.source.css -o css/tailwind.generated.css --minify",
|
||||
"build:beacon:bundle": "node scripts/build-beacon.mjs",
|
||||
"build:beacon": "npm run build:beacon:bundle && npm run lint:inline-styles",
|
||||
"ci:beacon": "npm run build:beacon",
|
||||
|
||||
@@ -273,6 +273,7 @@ function createController(options = {}) {
|
||||
}
|
||||
return hashtagStore.disinterests.delete(normalized);
|
||||
},
|
||||
load: async () => {},
|
||||
publish: async () => ({ ok: true }),
|
||||
on: () => () => {},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user