intentionally fail a unit test #4
Annotations
2 errors and 1 warning
Run yarn test:
src/components/MaskedSecureInput/MaskedSecureInput.test.tsx#L65
AssertionError: expected "spy" to be called with arguments: [ ObjectContaining{…}, Anything ]
Received:
1st spy call:
Array [
- ObjectContaining {
- "ssn": "12345678",
+ Object {
+ "ssn": "123456789",
+ },
+ SyntheticBaseEvent {
+ "_reactName": "onSubmit",
+ "_targetInst": null,
+ "bubbles": true,
+ "cancelable": true,
+ "currentTarget": null,
+ "defaultPrevented": true,
+ "eventPhase": 3,
+ "isDefaultPrevented": [Function functionThatReturnsTrue],
+ "isPropagationStopped": [Function functionThatReturnsFalse],
+ "isTrusted": true,
+ "nativeEvent": SubmitEvent {
+ "isTrusted": true,
+ },
+ "target": <form
+ novalidate=""
+ >
+ <div
+ class="MuiFormControl-root-cIviKq irijnr MuiFormControl-root MuiTextField-root-irieE MuiTextField-root"
+ inputmode="numeric"
+ >
+ <label
+ class="MuiFormLabel-root-JDKoj bogZUe MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root-iIigrT eiCHXa MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeMedium MuiInputLabel-outlined"
+ data-shrink="true"
+ for=":r3:"
+ id=":r3:-label"
+ >
+ Label
+ </label>
+ <div
+ class="MuiInputBase-root-jxHnQA MuiOutlinedInput-root-hbWbhN eaHyhh ksgrTr MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl"
+ >
+ <input
+ aria-invalid="false"
+ class="MuiInputBase-input-hgvIBM MuiOutlinedInput-input-gNAnCt gZFYRL jmGRjH MuiInputBase-input MuiOutlinedInput-input"
+ id=":r3:"
+ inputmode="numeric"
+ name="ssn"
+ type="password"
+ value="123-45-6789"
+ />
+ <fieldset
+ aria-hidden="true"
+ class="sc-guDLey kBlroy MuiOutlinedInput-notchedOutline-TWKdE gRFrCv MuiOutlinedInput-notchedOutline"
+ >
+ <legend
+ class="sc-dmyCSP dTjiMB"
+ >
+ <span>
+ Label
+ </span>
+ </legend>
+ </fieldset>
+ </div>
+ </div>
+ <button
+ type="submit"
+ >
+ Submit
+ </button>
+ </form>,
+ "timeStamp": 1710871459658,
+ "type": "submit",
},
- Anything,
]
Number of calls: 1
❯ src/components/MaskedSecureInput/MaskedSecureInput.test.tsx:65:30
|
Run yarn test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading