mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 21:11:45 +00:00
51c0e81557
Reviewed By: cpojer Differential Revision: D5237192 fbshipit-source-id: dccca52a91259d7fea27931f92bca94184a82d4a
21 lines
490 B
JavaScript
21 lines
490 B
JavaScript
'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('/Basic/Info.plist');
|
|
});
|
|
});
|