mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 23:28:12 +00:00
20 lines
483 B
JavaScript
20 lines
483 B
JavaScript
|
const chai = require('chai');
|
||
|
const expect = chai.expect;
|
||
|
const xcode = require('xcode');
|
||
|
const getPlistPath = require('../../src/ios/getPlistPath');
|
||
|
|
||
|
const project = xcode.project('test/fixtures/project.pbxproj');
|
||
|
|
||
|
describe('ios::getPlistPath', () => {
|
||
|
|
||
|
beforeEach(() => {
|
||
|
project.parseSync();
|
||
|
});
|
||
|
|
||
|
it('should return path without Xcode $(SRCROOT)', () => {
|
||
|
const plistPath = getPlistPath(project, '/');
|
||
|
expect(plistPath).to.equals('/Basic/Info.plist');
|
||
|
});
|
||
|
|
||
|
});
|