Skip to content

Commit

Permalink
Fixed all but one test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Jan 15, 2021
1 parent 5365a04 commit 469b0cf
Show file tree
Hide file tree
Showing 9 changed files with 508 additions and 664 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import {meta} from 'react-devtools-shared/src/hydration';
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/

// test() is part of Jest's serializer API
export function test(maybeDehydratedValue) {
const {meta} = require('react-devtools-shared/src/hydration');
return (
maybeDehydratedValue !== null &&
typeof maybeDehydratedValue === 'object' &&
Expand All @@ -12,6 +20,7 @@ export function test(maybeDehydratedValue) {

// print() is part of Jest's serializer API
export function print(dehydratedValue, serialize, indent) {
const {meta} = require('react-devtools-shared/src/hydration');
const indentation = Math.max(indent('.').indexOf('.') - 2, 0);
const paddingLeft = ' '.repeat(indentation);
return (
Expand Down
Loading

0 comments on commit 469b0cf

Please sign in to comment.