mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 07:08:27 +00:00
Summary: fix ci path problem on Windows pass all current ci. none [GENERAL] [INTERNAL] [CI] - fix ci path problem on Windows Pull Request resolved: https://github.com/facebook/react-native/pull/21203 Differential Revision: D9943608 Pulled By: hramos fbshipit-source-id: 66e3e196a6c0015e0472851abeee32de9fef140c
31 lines
751 B
JavaScript
31 lines
751 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 xcode = require('xcode');
|
|
const getPlistPath = require('../../ios/getPlistPath');
|
|
const path = require('path');
|
|
|
|
const project = xcode.project(
|
|
path.join(__dirname, '../../__fixtures__/project.pbxproj'),
|
|
);
|
|
|
|
describe('ios::getPlistPath', () => {
|
|
beforeEach(() => {
|
|
project.parseSync();
|
|
});
|
|
|
|
it('should return path without Xcode $(SRCROOT)', () => {
|
|
const plistPath = getPlistPath(project, '/');
|
|
expect(plistPath).toBe(path.normalize('/Basic/Info.plist'));
|
|
});
|
|
});
|