"use strict";

var _responsiveSize = _interopRequireDefault(require("../../responsive-size"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
jest.useFakeTimers();
jest.mock("react-native", () => ({
  PixelRatio: {
    get: jest.fn(() => 1)
  },
  Dimensions: {
    get: jest.fn(() => ({
      width: 400,
      height: 600,
      scale: 1,
      fontScale: 1
    }))
  }
}));
describe("responsiveSize", () => {
  beforeAll(() => {
    jest.resetModules();
  });
  it("returns 0 for empty size", () => {
    const scaledSize = (0, _responsiveSize.default)();
    expect(scaledSize).toBe(0);
  });
  it("returns the size itself by default", () => {
    const initialSize = 10;
    const scaledSize = (0, _responsiveSize.default)(initialSize);
    expect(scaledSize).toBe(initialSize);
  });
});
//# sourceMappingURL=default.spec.js.map