Update jest tests for pretty-format@25.3 (#43940)

This commit is contained in:
Nathan Shively-Sanders 2020-04-15 22:30:10 -07:00 committed by GitHub
parent 5f1f721c53
commit 421fcadecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -635,12 +635,12 @@ const snapshotSerializerPlugin: jest.SnapshotSerializerPlugin = {
expect.addSnapshotSerializer(snapshotSerializerPlugin);
expect.addSnapshotSerializer({
print: (value: {}) => '',
print: (value: unknown) => '',
test: (value: {}) => value === value,
});
expect.addSnapshotSerializer({
print: (value: {}, serialize: (val: {}) => string, indent: (str: string) => string, opts: {}) => '',
print: (value: unknown, serialize: (val: {}) => string, indent: (str: string) => string, opts: {}) => '',
test: (value: {}) => value === value,
});