mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 22:41:18 +08:00
Summary: Update several files to use the proper copyright header: ``` // 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. ``` In the case of Xcode project files, I used the shortform version, `Copyright (c) Facebook, Inc. and its affiliates.` Reviewed By: axe-fb Differential Revision: D10114529 fbshipit-source-id: a1f2d5a46d04797c1cf281ea9ab80d3a2caa6fb4
24 lines
628 B
JavaScript
24 lines
628 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.
|
|
*
|
|
* @format
|
|
* @emails oncall+javascript_foundation
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const normalizeProjectName = require('../../android/patches/normalizeProjectName');
|
|
|
|
const name = 'test';
|
|
const scopedName = '@scoped/test';
|
|
|
|
describe('normalizeProjectName', () => {
|
|
it('should replace slashes with underscores', () => {
|
|
expect(normalizeProjectName(name)).toBe('test');
|
|
expect(normalizeProjectName(scopedName)).toBe('@scoped_test');
|
|
});
|
|
});
|