Skip to content

Commit

Permalink
🐛 fix font params not being passed through
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Nov 1, 2023
1 parent ee9001b commit e92588c
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 42 deletions.
30 changes: 23 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
"version": "0.2.0",
"configurations": [
{
"args": [],
"args": [
"Markdown"
],
"internalConsoleOptions": "openOnSessionStart",
"name": "Jest Tests",
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
Expand All @@ -19,7 +23,10 @@
"request": "launch",
"name": "Jest Test current file",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${fileBasenameNoExtension}.js", "--watch"],
"args": [
"${fileBasenameNoExtension}.js",
"--watch"
],
"console": "integratedTerminal"
// "internalConsoleOptions": "neverOpen"
},
Expand Down Expand Up @@ -53,23 +60,32 @@
"name": "Run migrate WP to ArchieML",
"program": "${workspaceFolder}/itsJustJavascript/db/migrateWpPostsToArchieMl.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"name": "Sync WP posts to grapher",
"program": "${workspaceFolder}/itsJustJavascript/db/syncPostsToGrapher.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"name": "Run SVGTester",
"program": "${workspaceFolder}/itsJustJavascript/devTools/svgTester/verify-graphs.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"args": ["-g", "367"]
"args": [
"-g",
"367"
]
},
{
"name": "Launch admin server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe("MarkdownTextWrap", () => {

it("should calculate height correctly", () => {
const element = new MarkdownTextWrap({
text: "a\nb\nc",
text: "a \nb \nc",
fontSize: 10,
lineHeight: 1.5,
})
Expand All @@ -83,7 +83,7 @@ describe("MarkdownTextWrap", () => {

it("should split on newline", () => {
const element = new MarkdownTextWrap({
text: "_test\n**\nnewline\n**_test",
text: "_test \n** \nnewline \n**_test",
fontSize: 10,
lineHeight: 1,
})
Expand Down
Loading

0 comments on commit e92588c

Please sign in to comment.