mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2025-09-10 00:27:20 +00:00
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>
This commit is contained in:
@@ -2,11 +2,12 @@ import {strict as assert} from "node:assert";
|
||||
import {describe, it, beforeEach} from "mocha";
|
||||
import {saveReviewsToStorage, getReviewsFromStorage} from "./localStorage.js";
|
||||
|
||||
beforeEach(() => {
|
||||
localStorage.clear();
|
||||
});
|
||||
|
||||
describe("test app localStorage interaction", () => {
|
||||
|
||||
beforeEach(() => {
|
||||
localStorage.clear();
|
||||
});
|
||||
|
||||
it("get after init", () => {
|
||||
assert.deepEqual(getReviewsFromStorage(), []);
|
||||
});
|
||||
|
Reference in New Issue
Block a user