mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Differential Revision: D39536169 fbshipit-source-id: 6c8d6787328eefecd23f3498b14a6d9ff750a670
27 lines
678 B
JavaScript
27 lines
678 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @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');
|
|
});
|
|
});
|