1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  *
    
  7.  * @flow
    
  8.  */
    
  9. 
    
  10. describe('profiling utils', () => {
    
  11.   let utils;
    
  12. 
    
  13.   beforeEach(() => {
    
  14.     utils = require('react-devtools-shared/src/devtools/views/Profiler/utils');
    
  15.   });
    
  16. 
    
  17.   it('should throw if importing older/unsupported data', () => {
    
  18.     expect(() =>
    
  19.       utils.prepareProfilingDataFrontendFromExport(
    
  20.         ({
    
  21.           version: 0,
    
  22.           dataForRoots: [],
    
  23.         }: any),
    
  24.       ),
    
  25.     ).toThrow('Unsupported profile export version');
    
  26.   });
    
  27. });