Skip to content

Commit 3ae4136

Browse files
committed
copyright header
1 parent 3f83aaf commit 3ae4136

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/jest-util/src/isPromise.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
18
// see ES2015 spec 25.4.4.5, https://stackoverflow.com/a/38339199
29
const isPromise = (candidate: unknown): candidate is Promise<unknown> =>
310
Promise.resolve(candidate) === candidate;

0 commit comments

Comments
 (0)