Commit Graph

16 Commits

Author SHA1 Message Date
Arthur Lu
cf7b0da5ad fix tests to match modified localStorage layout
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-12-01 16:25:15 -08:00
Arthur Lu
5943a5c8ef update tests to match new tag and sorting helper prototypes,
remove getTopReviewsFromStorage and getReviewsByTag from localStorage and main

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-30 14:49:41 -08:00
Arthur Lu
af4378ee40 fix some linting issues,
fix bug in localStroage unit tests

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-26 16:06:24 -08:00
Arthur Lu
9ff58a1c2c add sorting and filtering localStorage helper functions,
add new unit tests for new helper functions

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-26 15:37:48 -08:00
Kara Hoagland
1db54e9f7a remove alt from js/html/tests 2022-11-21 11:58:26 -08:00
Arthur Lu
f6a9fb7fc5 remove implied init from localStorage unit tests
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-18 14:08:19 -08:00
Arthur Lu
3422f584f9 fix linting in js 2022-11-18 07:56:07 +00:00
Arthur Lu
5e83338668 update unit tests to match new localStorage implementations 2022-11-18 07:51:08 +00:00
Arthur Lu
dd7d876f29 add dependencies to package.json,
add http-server script to package.json,
add simple e2e test in main.e2e.test.js

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-16 16:10:31 -08:00
Arthur Lu
b6f3a57231 adjust JS Unit tests to be more permissive
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-15 01:11:48 +00:00
Arthur Lu
66dd92f0dc fix js linting
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-15 00:53:07 +00:00
Kara Hoagland
d72e8ea601 merge 2022-11-11 12:12:29 -08:00
Kara Hoagland
9ee980f57e added stars back 2022-11-11 12:07:58 -08:00
Arthur Lu
8b2ae89bd2 switch localStorage mock to mock-local-storage,
fix unit tests to work with ES6 import syntax,
remove testenv module
2022-11-11 02:39:40 +00:00
Arthur Lu
b85a73400d add another unit test to localStorage.test.js,
reflect fixes to packages.json from main
2022-11-10 22:33:47 +00:00
Arthur Lu
1718c7cedb move localStorage util to localStorage.js,
update main,js to rquire localStroage,
add simple unit tests to localStroage.test.js,
create symlink of testenv.js to source/assets/scripts,
update package.json with proper recursive call

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2022-11-10 01:35:41 +00:00