react/packages/react-data/src/__tests__/ReactDataFetch-test.js
Dan Abramov 515326753b
[Blocks] Initial implementation of cache and data/fetch (#18774)
* Rename ReactCache -> ReactCacheOld

We still use it in some tests so I'm going to leave it for now. I'll start making the new one in parallel in the react package.

* Add react/unstable-cache entry point

* Add react-data entry point

* Initial implementation of cache and data/fetch

* Address review
2020-04-29 19:14:15 +01:00

24 lines
498 B
JavaScript

/**
* 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.
*
* @emails react-core
*/
'use strict';
describe('ReactDataFetch', () => {
let ReactDataFetch;
beforeEach(() => {
ReactDataFetch = require('react-data/fetch');
});
// TODO: test something useful.
it('exports something', () => {
expect(ReactDataFetch.fetch).not.toBe(undefined);
});
});