mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-27 19:25:11 +08:00
Summary: This is very much a work in progress. Moving it into the open source repo to be able to hook it up to generate some Fabric files. Will continue to iterate on it in the open. Reviewed By: hramos, mdvacca Differential Revision: D13500969 fbshipit-source-id: 79082447dc52b5834f24eb72bc6e07200b324238
28 lines
687 B
JavaScript
28 lines
687 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 oncall+react_native
|
|
* @flow strict-local
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const fixtures = require('../__test_fixtures__/fixtures.js');
|
|
const generator = require('../GeneratePropsH.js');
|
|
|
|
describe('GeneratePropsH', () => {
|
|
Object.keys(fixtures)
|
|
.sort()
|
|
.forEach(fixtureName => {
|
|
const fixture = fixtures[fixtureName];
|
|
|
|
it(`can generate fixture ${fixtureName}`, () => {
|
|
expect(generator.generate(fixtureName, fixture)).toMatchSnapshot();
|
|
});
|
|
});
|
|
});
|