text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var react_hooks_1 = require("@testing-library/react-hooks");
  var usePersistedState_1 = require("./usePersistedState");
  test('should save default value in LocalStatorage ', function () {
      var key = 'exampleToken';
      var defaultValue = 'unosquareToken';
      var result = react_hooks_1.renderHook(function () { return usePersistedState_1.usePersistedState(defaultValue, key); }).result;
      expect(result.current[0]).toBe(defaultValue);
  });
  test('should save in LocalStatorage, changing default value ', function () {
      var key = 'exampleToken';
      var defaultValue = 'unosquareToken';
      var result = react_hooks_1.renderHook(function () { return usePersistedState_1.usePersistedState(defaultValue, key); }).result;
      var value = '123456789';
      react_hooks_1.act(function () {
          result.current[1](value);
      });
      expect(result.current[0]).toBe(value);
  });
  