UNPKG

react-native

Version:

A framework for building native apps using React

35 lines (29 loc) 918 B
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * All rights reserved. * * @emails oncall+javascript_foundation */ 'use strict'; const xcode = require('xcode'); const getProducts = require('../../ios/getProducts'); const path = require('path'); const project = xcode.project( path.join(__dirname, '../../__fixtures__/project.pbxproj') ); describe('ios::getProducts', () => { beforeEach(() => { project.parseSync(); }); it('should return an array of static libraries project exports', () => { const products = getProducts(project); expect(products.length).toBe(1); expect(products).toContain('libRCTActionSheet.a'); }); });