Skip to content

Commit

Permalink
snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jul 31, 2024
1 parent 59e722d commit b18295c
Show file tree
Hide file tree
Showing 23 changed files with 6 additions and 5,615 deletions.
22 changes: 0 additions & 22 deletions packages/context/src/__tests__/__snapshots__/cascade.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,3 @@ exports[`Cascading Context > createCascade > Should return all methods 1`] = `
"useX": [Function],
}
`;

exports[`Cascading Context context.run Should clear context after callback run 1`] = `
{
"a": 1,
}
`;

exports[`Cascading Context context.run Should clear context after callback run 2`] = `
{
"a": 1,
"b": 2,
}
`;

exports[`Cascading Context createCascade Should return all methods 1`] = `
{
"bind": [Function],
"run": [Function],
"use": [Function],
"useX": [Function],
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -76,80 +76,3 @@ exports[`Stateful behavior > Should have all fields 1`] = `
},
}
`;

exports[`Stateful behavior Should have all fields 1`] = `
{
"field_1": SummaryBase {
"errorCount": 1,
"errors": [
"field_statement_1",
],
"pendingCount": 0,
"testCount": 1,
"valid": false,
"warnCount": 0,
"warnings": [],
},
"field_2": SummaryBase {
"errorCount": 1,
"errors": [
"field_statement_2",
],
"pendingCount": 0,
"testCount": 1,
"valid": false,
"warnCount": 0,
"warnings": [],
},
"field_3": SummaryBase {
"errorCount": 0,
"errors": [],
"pendingCount": 0,
"testCount": 1,
"valid": true,
"warnCount": 0,
"warnings": [],
},
"field_4": {
"errorCount": 0,
"errors": [],
"pendingCount": 0,
"testCount": 2,
"valid": true,
"warnCount": 1,
"warnings": [
"field_statement_4",
],
},
"field_5": {
"errorCount": 2,
"errors": [
"field_statement_5",
"field_statement_6",
],
"pendingCount": 0,
"testCount": 2,
"valid": false,
"warnCount": 0,
"warnings": [],
},
"field_6": SummaryBase {
"errorCount": 0,
"errors": [],
"pendingCount": 1,
"testCount": 1,
"valid": false,
"warnCount": 0,
"warnings": [],
},
"field_7": SummaryBase {
"errorCount": 0,
"errors": [],
"pendingCount": 1,
"testCount": 1,
"valid": false,
"warnCount": 0,
"warnings": [],
},
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -99,103 +99,3 @@ exports[`Base behavior > Should produce correct validation result 1`] = `
],
}
`;

exports[`Base behavior Should produce correct validation result 1`] = `
{
"done": [Function],
"errorCount": 2,
"errors": [
SummaryFailure {
"fieldName": "field_1",
"groupName": undefined,
"message": "field_statement_1",
},
SummaryFailure {
"fieldName": "field_2",
"groupName": undefined,
"message": "field_statement_2",
},
],
"getError": [Function],
"getErrors": [Function],
"getErrorsByGroup": [Function],
"getMessage": [Function],
"getWarning": [Function],
"getWarnings": [Function],
"getWarningsByGroup": [Function],
"groups": {},
"hasErrors": [Function],
"hasErrorsByGroup": [Function],
"hasWarnings": [Function],
"hasWarningsByGroup": [Function],
"isPending": [Function],
"isTested": [Function],
"isValid": [Function],
"isValidByGroup": [Function],
"pendingCount": 0,
"suiteName": undefined,
"testCount": 5,
"tests": {
"field_1": SummaryBase {
"errorCount": 1,
"errors": [
"field_statement_1",
],
"pendingCount": 0,
"testCount": 1,
"valid": false,
"warnCount": 0,
"warnings": [],
},
"field_2": SummaryBase {
"errorCount": 1,
"errors": [
"field_statement_2",
],
"pendingCount": 0,
"testCount": 1,
"valid": false,
"warnCount": 0,
"warnings": [],
},
"field_3": SummaryBase {
"errorCount": 0,
"errors": [],
"pendingCount": 0,
"testCount": 1,
"valid": true,
"warnCount": 0,
"warnings": [],
},
"field_4": {
"errorCount": 0,
"errors": [],
"pendingCount": 0,
"testCount": 2,
"valid": true,
"warnCount": 1,
"warnings": [
"field_statement_4",
],
},
"field_5": {
"errorCount": 0,
"errors": [],
"pendingCount": 0,
"testCount": 0,
"valid": false,
"warnCount": 0,
"warnings": [],
},
},
"valid": false,
"warnCount": 1,
"warnings": [
SummaryFailure {
"fieldName": "field_4",
"groupName": undefined,
"message": "field_statement_4",
},
],
}
`;
Loading

0 comments on commit b18295c

Please sign in to comment.