Skip to content

Commit 9e7d281

Browse files
committed
Final release changes
1 parent c21d155 commit 9e7d281

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "form-and-function",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"main": "dist/form-and-function.cjs.js",
55
"module": "dist/form-and-function.esm.js",
66
"browser": "dist/form-and-function.umd.js",
@@ -40,8 +40,7 @@
4040
"build-demo": "rimraf docs && react-scripts-ts build && mv build docs",
4141
"test": "react-scripts-ts test --env=jsdom",
4242
"eject": "react-scripts-ts eject",
43-
"remove-rollup-ts":
44-
"rimraf node_modules/rollup-plugin-typescript/node_modules/typescript",
43+
"remove-rollup-ts": "rimraf node_modules/rollup-plugin-typescript/node_modules/typescript",
4544
"prepublish": "yarn build",
4645
"publish-docs": "gh-pages -d docs"
4746
}

src/lib/validation/atLeast.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ describe("atLeast", () => {
4848

4949
it("calls invalid when value contains less than x chars", () => {
5050
const invalid = jest.fn();
51-
const formatter = jest.fn().mockReturnValue((x, y) => ({ x, y });
51+
const formatter = jest
52+
.fn()
53+
.mockReturnValue((x: any, y: any) => ({ x, y }));
5254

5355
const params = { chars: 3 };
5456
const msg = {
@@ -83,7 +85,9 @@ describe("atLeast", () => {
8385

8486
it("calls invalid when numeric value contains less than x chars", () => {
8587
const invalid = jest.fn();
86-
const formatter = jest.fn().mockReturnValue((x, y) => ({ x, y });
88+
const formatter = jest
89+
.fn()
90+
.mockReturnValue((x: any, y: any) => ({ x, y }));
8791

8892
const params = { chars: 3 };
8993
const msg = {
@@ -100,7 +104,9 @@ describe("atLeast", () => {
100104

101105
it("calls invalid when value is undefined", () => {
102106
const invalid = jest.fn();
103-
const formatter = jest.fn().mockReturnValue((x, y) => ({ x, y });
107+
const formatter = jest
108+
.fn()
109+
.mockReturnValue((x: any, y: any) => ({ x, y }));
104110

105111
const params = { chars: 3 };
106112
const msg = {

0 commit comments

Comments
 (0)