mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
* 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
24 lines
498 B
JavaScript
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);
|
|
});
|
|
});
|