text: /**
   * 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.
   *
   * @emails oncall+react_native
   * @format
   */
  
  'use strict';
  
  describe('normalizePathSep', () => {
    it('does nothing on posix', () => {
      jest.resetModules();
      jest.mock('path', () => jest.requireActual('path').posix);
      const normalizePathSep = require('../normalizePathSep').default;
      expect(normalizePathSep('foo/bar/baz.js')).toEqual('foo/bar/baz.js');
    });
  
    it('replace slashes on windows', () => {
      jest.resetModules();
      jest.mock('path', () => jest.requireActual('path').win32);
      const normalizePathSep = require('../normalizePathSep').default;
      expect(normalizePathSep('foo/bar/baz.js')).toEqual('foo\\bar\\baz.js');
    });
  });
  