diff --git a/.github/workflows/js-unittest.yml b/.github/workflows/js-unittest.yml index 4cb1359..918ce70 100644 --- a/.github/workflows/js-unittest.yml +++ b/.github/workflows/js-unittest.yml @@ -23,5 +23,7 @@ jobs: uses: actions/checkout@v3 - name: Install dependencies run: sudo npm install + - name: Start local http server + run: sudo npm run http-server & - name: Run tests run: sudo npm test \ No newline at end of file diff --git a/package.json b/package.json index bd8a69c..5dfc756 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,19 @@ "type": "module", "scripts": { "test": "mocha --recursive --require mock-local-storage './{,!(node_modules)/**}/*.test.js'", - "lint": "eslint '**/*.js'", + "lint": "eslint **/*.js", "fix-style": "eslint --fix **/*.js", "lintHTML": "htmlhint '**/*.html'", - "lintCSS": "stylelint '**/*.css'" + "lintCSS": "stylelint '**/*.css'", + "http-server": "http-server source" }, "devDependencies": { "eslint": "^8.27.0", "htmlhint": "1.1.4", + "http-server": "", "mocha": "10", "mock-local-storage": "^1.1.23", + "puppeteer": "^18.2.1", "stylelint": "14.14.1", "stylelint-config-standard": "^29.0.0" } diff --git a/source/CreatePage.html b/source/CreatePage.html index 64dfe78..222258a 100644 --- a/source/CreatePage.html +++ b/source/CreatePage.html @@ -15,63 +15,80 @@ - + +
-