jest-canvas-mock 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ patreon: # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: # Replace with a single Ko-fi username
7
+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: # Replace with a single Liberapay username
10
+ issuehunt: # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: ['https://paypal.me/hustcc', 'https://atool.vip']
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jest-canvas-mock
2
2
 
3
- > Mock `canvas` when run unit test cases with jest.
3
+ > Mock `canvas` when run unit test cases with jest. For more browser environment, you can use [jest-electron](https://github.com/hustcc/jest-electron) for real browser runtime.
4
4
 
5
5
  [![Build Status](https://travis-ci.org/hustcc/jest-canvas-mock.svg?branch=master)](https://travis-ci.org/hustcc/jest-canvas-mock)
6
6
  [![Coverage Status](https://coveralls.io/repos/github/hustcc/jest-canvas-mock/badge.svg?branch=master)](https://coveralls.io/github/hustcc/jest-canvas-mock)
@@ -74,7 +74,7 @@ function () {
74
74
 
75
75
  }, {
76
76
  key: "__getEvents",
77
- value: function __getEvents(ctx) {
77
+ value: function __getEvents() {
78
78
  return this._events.slice();
79
79
  }
80
80
  /**
@@ -84,8 +84,8 @@ function () {
84
84
 
85
85
  }, {
86
86
  key: "__getPath",
87
- value: function __getPath(ctx) {
88
- return ctx._path.slice();
87
+ value: function __getPath() {
88
+ return this._path.slice();
89
89
  }
90
90
  }]);
91
91
 
package/lib/index.js CHANGED
@@ -19,5 +19,5 @@ if (typeof window !== 'undefined') {
19
19
  global.window = (0, _window["default"])(window);
20
20
  }
21
21
 
22
- var ver = "2.1.1";
22
+ var ver = "2.1.2";
23
23
  exports.ver = ver;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-canvas-mock",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Mock a canvas in your jest tests.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",