Skip to content

Commit 841a4cb

Browse files
committed
fix asn1 decoding for large integers
- fixed decoding for large integers - added tests for js runtime - introduce shadow-cljs for running js tests
1 parent 31f2f36 commit 841a4cb

File tree

10 files changed

+3108
-118
lines changed

10 files changed

+3108
-118
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@
44
pdf/test-allekirjoitettu.pdf
55
pdf/testi.pdf-signable
66
target
7+
pom.xml
8+
public
9+
out
10+
node_modules
11+
.clj-kondo
12+
.lsp
13+
.shadow-cljs

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1+
# Puumerkki
12

3+
A library for communicating with DVV certificate card reader software
4+
5+
## Usage
6+
7+
See `dev-src/clj/puumerkki/main.clj` for example usages
8+
9+
## Testing
10+
11+
In order to execute tests in JVM, install Leigingen and run:
12+
13+
```
14+
lein test
15+
```
16+
17+
JS-tests are run with Shadow-cljs. Install npm, run `npm install` and execute tests:
18+
```
19+
npm run test
20+
```

karma.conf.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = function (config) {
2+
config.set({
3+
browsers: ['ChromeHeadlessCI'],
4+
customLaunchers: {
5+
ChromeHeadlessCI: {
6+
base: 'ChromeHeadless',
7+
flags: ['--no-sandbox']
8+
}
9+
},
10+
basePath: 'out', // this is the same as the base-path of `:output-to` in `shadow-cljs.edn`
11+
files: ['test.js'], // this is the same as the file-name (ending with .js) of `:output-to` in `shadow-cljs.edn`
12+
frameworks: ['cljs-test'],
13+
plugins: ['karma-cljs-test', 'karma-chrome-launcher'],
14+
colors: true,
15+
logLevel: config.LOG_INFO,
16+
client: {
17+
args: ["shadow.test.karma.init"],
18+
singleRun: true
19+
}
20+
})
21+
};

0 commit comments

Comments
 (0)