Skip to content

Commit 0775e9d

Browse files
committed
chore: small test description improvement
1 parent 16fe9f8 commit 0775e9d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/util.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {dequal as isEqual} from 'dequal/lite';
22

33
function subscribeOnce(observable) {
4-
return new Promise(resolve => {
4+
return new Promise((resolve) => {
55
observable.subscribe(resolve)(); // immediately invoke to unsubscribe
66
});
77
}
88

99
function update(object, path, value) {
10-
object.update(o => {
10+
object.update((o) => {
1111
set(o, path, value);
1212
return o;
1313
});
@@ -54,7 +54,7 @@ function getErrorsFromSchema(initialValues, schema, errors = {}) {
5454
case schema[key].type === 'array': {
5555
const values =
5656
initialValues && initialValues[key] ? initialValues[key] : [];
57-
errors[key] = values.map(value =>
57+
errors[key] = values.map((value) =>
5858
getErrorsFromSchema(
5959
value,
6060
schema[key].innerType.fields,
@@ -77,7 +77,7 @@ const deepEqual = isEqual;
7777

7878
function assignDeep(object, value) {
7979
if (Array.isArray(object)) {
80-
return object.map(o => assignDeep(o, value));
80+
return object.map((o) => assignDeep(o, value));
8181
}
8282
const copy = {};
8383
for (const key in object) {

test/specs/library.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ describe('createForm', () => {
488488
});
489489
});
490490

491-
it('validateFn handles nested values', done => {
491+
it('validateFn handles nested values on submit', done => {
492492
const errorMessage = 'this field is invalid';
493493
const instance = createForm({
494494
initialValues: {

0 commit comments

Comments
 (0)