-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more idiomatic Vitest in the testing suite (#1245)
* Use vitest except where possible and organize tests * Use vi.fn() instead of CallTracker in 'deprecated' helper - CallTracker has been deprecated in Node.js - vi.fn() is probably more familiar to Vitest users --------- Co-authored-by: Artur Müller <[email protected]>
- Loading branch information
1 parent
625cea5
commit cb3bb0d
Showing
4 changed files
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import isEmail from 'is-email' | ||
import { string, refine } from '../../../src' | ||
|
||
export const Struct = refine(string(), 'email', isEmail) | ||
export const Struct = refine(string(), 'email', (value) => value.includes('@')) | ||
|
||
export const data = '[email protected]' | ||
|
||
|