Skip to content

Commit

Permalink
Add basic unit tests for SignaturePad class
Browse files Browse the repository at this point in the history
Unfortunately, drawing on a canvas gives slightly different results on
different platforms, so one can't compare raw image data, because if it
passes e.g. on Mac, it will fail on Linux :/

Most likely something like 'looks-same' needs to be used instead.
  • Loading branch information
szimek committed Apr 16, 2018
1 parent b10aa9a commit 7d49c1f
Show file tree
Hide file tree
Showing 9 changed files with 879 additions and 554 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
@@ -0,0 +1,8 @@
language: node_js

node_js:
- "8"
- "9"

cache:
yarn: true
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,14 @@
## Changelog

### master
#### Bug fixes
- Fix error in `touchend` event handler.
- Make both params in `#toDataURL` optional to match `Canvas#toDataURL`.

#### Features
- Add optional callback param to `#fromDataURL`.
- Add basic unit tests for SignaturePad class.

### 3.0.0-beta.1
#### Breaking changes
- Rewrite library using TypeScript. TypeScript declaration files are now provided by the library. Hopefully, it should be a bit easier to refactor now...
Expand Down

0 comments on commit 7d49c1f

Please sign in to comment.