mirror of
https://github.com/status-im/react-native.git
synced 2025-02-02 04:34:55 +00:00
28 lines
644 B
JavaScript
28 lines
644 B
JavaScript
|
'use strict';
|
||
|
|
||
|
jest.autoMockOff();
|
||
|
|
||
|
const xcode = require('xcode');
|
||
|
const path = require('path');
|
||
|
const addFileToProject = require('../../src/ios/addFileToProject');
|
||
|
const _ = require('lodash');
|
||
|
|
||
|
const project = xcode.project(
|
||
|
path.join(__dirname, '../../__fixtures__/project.pbxproj')
|
||
|
);
|
||
|
|
||
|
describe('ios::addFileToProject', () => {
|
||
|
beforeEach(() => {
|
||
|
project.parseSync();
|
||
|
});
|
||
|
|
||
|
xit('should add file to a project', () => {
|
||
|
expect(
|
||
|
_.includes(
|
||
|
Object.keys(project.pbxFileReferenceSection()),
|
||
|
addFileToProject(project, '../../__fixtures__/linearGradient.pbxproj').fileRef
|
||
|
)
|
||
|
).toBeTruthy();
|
||
|
});
|
||
|
});
|