Skip to content

Commit

Permalink
#94 added clear image option to "cut out" parts of the qr-code and ad…
Browse files Browse the repository at this point in the history
…d an image
  • Loading branch information
werthdavid committed Jun 3, 2024
1 parent 0e59e89 commit a8956f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build on Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
release-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: ngx-kjua
Expand Down
7 changes: 7 additions & 0 deletions setup-jest.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
import "jest-preset-angular/setup-jest";
import "./projects/ngx-kjua/src/lib/kjua/lib/qrcode"

// We have to mock the whole thing as "qrcode-generator" needs to override the stringToBytes method
// but typescript can't properly hande that
jest.mock("./projects/ngx-kjua/src/lib/kjua/lib/qrcode", ()=>({
quiet_qrcode: jest.fn()
}))
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"module": "es2020",
"target": "es6",
"module": "es6",
"lib": [
"es2020",
"es6",
"dom"
]
},
Expand Down

0 comments on commit a8956f8

Please sign in to comment.