mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Differential Revision: D20639755 fbshipit-source-id: 5028563f9cf0527a30b4259daac50cdc03934bfd
27 lines
682 B
JavaScript
27 lines
682 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @emails oncall+react_native
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
jest.setMock('../../BatchedBridge/NativeModules', {
|
|
BlobModule: require('../__mocks__/BlobModule'),
|
|
});
|
|
|
|
const Blob = require('../Blob');
|
|
const BlobManager = require('../BlobManager');
|
|
|
|
describe('BlobManager', function() {
|
|
it('should create blob from parts', () => {
|
|
const blob = BlobManager.createFromParts([], {type: 'text/html'});
|
|
expect(blob).toBeInstanceOf(Blob);
|
|
expect(blob.type).toBe('text/html');
|
|
});
|
|
});
|