mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
545072b02d
Summary: A bit late to the party, but upgraded, tests replaced, all green. Also updated `pbxproj` so that we are testing against React 0.40 init result, not against something old. To cherry-pick and land once ships. Closes https://github.com/facebook/react-native/pull/11868 Differential Revision: D4411362 fbshipit-source-id: c485fd76114979d34a7e288bb70e1ecb9b3baf76
29 lines
653 B
JavaScript
29 lines
653 B
JavaScript
'use strict';
|
|
|
|
jest.autoMockOff();
|
|
|
|
const xcode = require('xcode');
|
|
const mapHeaderSearchPaths = require('../../ios/mapHeaderSearchPaths');
|
|
const path = require('path');
|
|
|
|
const project = xcode.project(
|
|
path.join(__dirname, '../../__fixtures__/project.pbxproj')
|
|
);
|
|
|
|
describe('ios::mapHeaderSearchPaths', () => {
|
|
beforeEach(() => {
|
|
project.parseSync();
|
|
});
|
|
|
|
/**
|
|
* Based on the fixtures, our assumption is that this function
|
|
* has to be executed two times.
|
|
*/
|
|
it('should be called twice', () => {
|
|
const callback = jest.fn();
|
|
mapHeaderSearchPaths(project, callback);
|
|
|
|
expect(callback.mock.calls.length).toBe(2);
|
|
});
|
|
});
|