Skip to content

Commit

Permalink
Update some dependencies and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Nov 27, 2022
1 parent 842f883 commit 6b2902c
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 46 deletions.
78 changes: 48 additions & 30 deletions app/bibleview-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions app/bibleview-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"test:ci": "vue-cli-service test:unit"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "~6.2.0",
"@fortawesome/free-solid-svg-icons": "~6.2.0",
"@fortawesome/fontawesome-svg-core": "~6.2.1",
"@fortawesome/free-solid-svg-icons": "~6.2.1",
"@fortawesome/vue-fontawesome": "~3.0.0-5",
"@vue/runtime-core": "~3.2.40",
"@vue/runtime-core": "~3.2.45",
"bible-passage-reference-parser": "~2.0.1",
"color": "~3.1.4",
"core-js": "~3.25.3",
"core-js": "~3.26.1",
"lodash": "~4.17.21",
"mitt": "~3.0.0",
"sprintf-js": "~1.1.2",
"vue": "~3.2.40",
"vue": "~3.2.45",
"vuedraggable": "~4.1.0"
},
"devDependencies": {
Expand All @@ -41,9 +41,9 @@
"@vue/cli-plugin-typescript": "~5.0.0",
"@vue/cli-plugin-unit-jest": "~5.0.8",
"@vue/cli-service": "~5.0.8",
"@vue/compiler-sfc": "~3.2.40",
"@vue/compiler-sfc": "~3.2.45",
"@vue/eslint-config-typescript": "~9.1.0",
"@vue/reactivity": "~3.2.40",
"@vue/reactivity": "~3.2.45",
"@vue/test-utils": "~2.1.0",
"@vue/vue3-jest": "~27.0.0",
"babel-jest": "~27.5.1",
Expand All @@ -56,8 +56,8 @@
"raw-loader": "~4.0.2",
"sass": "~1.55.0",
"sass-loader": "~13.0.2",
"ts-jest": "^27.0.4",
"typescript": "~4.5.5",
"ts-jest": "~27.0.4",
"typescript": "~4.9.3",
"vue-cli-plugin-webpack-bundle-analyzer": "~4.0.0",
"vue-cli-plugin-yaml": "~1.0.2"
},
Expand Down
14 changes: 7 additions & 7 deletions app/bibleview-js/tests/unit/bookmarks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,32 @@ describe("verseHighlight tests", () => {

it("test 1 highlight and 1 underline", () =>
test(1, 1,
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%);"));
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%)"));


it("test 2 highlight and 1 underline", () =>
test(2, 1,
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 34%, hsl(240, 100%, 0.4%) 34% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%);"));
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 34%, hsl(240, 100%, 0.4%) 34% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%)"));

it("test 3 highlight and 1 underline", () =>
test(3, 1,
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 24%, hsl(240, 100%, 0.4%) 24% 44%, hsl(240, 100%, 0.6%) 44% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%);"));
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 24%, hsl(240, 100%, 0.4%) 24% 44%, hsl(240, 100%, 0.6%) 44% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%)"));

it("test 3 highlight and 2 underline", () =>
test(3, 2,
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 24%, hsl(240, 100%, 0.4%) 24% 44%, hsl(240, 100%, 0.6%) 44% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%, transparent 70% 72%, hsl(240, 100%, 0.4%) 72% 76%,transparent 0%);"));
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 24%, hsl(240, 100%, 0.4%) 24% 44%, hsl(240, 100%, 0.6%) 44% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%, transparent 70% 72%, hsl(240, 100%, 0.4%) 72% 76%,transparent 0%)"));

it("test 3 highlight and 3 underline", () =>
test(3, 2,
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 24%, hsl(240, 100%, 0.4%) 24% 44%, hsl(240, 100%, 0.6%) 44% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%, transparent 70% 72%, hsl(240, 100%, 0.4%) 72% 76%,transparent 0%);"));
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 24%, hsl(240, 100%, 0.4%) 24% 44%, hsl(240, 100%, 0.6%) 44% 64%,transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%, transparent 70% 72%, hsl(240, 100%, 0.4%) 72% 76%,transparent 0%)"));

it("test 0 highlight and 1 underline", () =>
test(0, 1,
"linear-gradient(to bottom, transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%);"));
"linear-gradient(to bottom, transparent 64% 66%, hsl(240, 100%, 0.2%) 66% 70%,transparent 0%)"));

it("test 1 highlight and 0 underline", () =>
test(1, 0,
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 64%,transparent 0%);"));
"linear-gradient(to bottom, transparent 0% 4%, hsl(240, 100%, 0.2%) 4% 64%,transparent 0%)"));
});

describe("useBookmark tests", () => {
Expand Down

0 comments on commit 6b2902c

Please sign in to comment.