// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`localStorageMethods clearGameInfoFromLocalStorage clears data 1`] = `[MockFunction]`;

exports[`localStorageMethods clearGameInfoFromLocalStorage clears data 2`] = `[MockFunction]`;

exports[`localStorageMethods clearGameInfoFromLocalStorage clears data 3`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:gameId",
    ],
    Array [
      "terrassumptions:playerName",
    ],
    Array [
      "terrassumptions:playerId",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
  ],
}
`;

exports[`localStorageMethods clearRoundInfoFromLocalStorage clears data 1`] = `[MockFunction]`;

exports[`localStorageMethods clearRoundInfoFromLocalStorage clears data 2`] = `[MockFunction]`;

exports[`localStorageMethods clearRoundInfoFromLocalStorage clears data 3`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:timer",
    ],
    Array [
      "terrassumptions:pano:lat",
    ],
    Array [
      "terrassumptions:pano:lng",
    ],
    Array [
      "terrassumptions:pano:heading",
    ],
    Array [
      "terrassumptions:pano:pitch",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
  ],
}
`;

exports[`localStorageMethods getInfoFromLocalStorage gets data 1`] = `
Object {
  "gameId": "test-game-id",
  "playerId": "test-player-id",
  "playerName": "test-player",
  "position": Object {
    "lat": NaN,
    "lng": NaN,
  },
  "pov": Object {
    "heading": NaN,
    "pitch": NaN,
  },
  "timer": 300,
}
`;

exports[`localStorageMethods getInfoFromLocalStorage gets data 2`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:timer",
    ],
    Array [
      "terrassumptions:pano:lat",
    ],
    Array [
      "terrassumptions:pano:lng",
    ],
    Array [
      "terrassumptions:pano:heading",
    ],
    Array [
      "terrassumptions:pano:pitch",
    ],
    Array [
      "terrassumptions:gameId",
    ],
    Array [
      "terrassumptions:playerName",
    ],
    Array [
      "terrassumptions:playerId",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": "300",
    },
    Object {
      "type": "return",
      "value": "test-lat",
    },
    Object {
      "type": "return",
      "value": "test-lng",
    },
    Object {
      "type": "return",
      "value": "test-heading",
    },
    Object {
      "type": "return",
      "value": "test-pitch",
    },
    Object {
      "type": "return",
      "value": "test-game-id",
    },
    Object {
      "type": "return",
      "value": "test-player",
    },
    Object {
      "type": "return",
      "value": "test-player-id",
    },
  ],
}
`;

exports[`localStorageMethods getInfoFromLocalStorage gets data 3`] = `[MockFunction]`;

exports[`localStorageMethods getInfoFromLocalStorage gets data 4`] = `[MockFunction]`;

exports[`localStorageMethods getInfoFromLocalStorage handles bad/missing extra data 1`] = `
Object {
  "gameId": "test-game-id",
  "playerId": "test-player-id",
  "playerName": "test-player",
  "position": null,
  "pov": null,
  "timer": null,
}
`;

exports[`localStorageMethods getInfoFromLocalStorage handles bad/missing extra data 2`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:timer",
    ],
    Array [
      "terrassumptions:pano:lat",
    ],
    Array [
      "terrassumptions:pano:lng",
    ],
    Array [
      "terrassumptions:pano:heading",
    ],
    Array [
      "terrassumptions:pano:pitch",
    ],
    Array [
      "terrassumptions:gameId",
    ],
    Array [
      "terrassumptions:playerName",
    ],
    Array [
      "terrassumptions:playerId",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": null,
    },
    Object {
      "type": "return",
      "value": null,
    },
    Object {
      "type": "return",
      "value": "test-lng",
    },
    Object {
      "type": "return",
      "value": null,
    },
    Object {
      "type": "return",
      "value": "test-pitch",
    },
    Object {
      "type": "return",
      "value": "test-game-id",
    },
    Object {
      "type": "return",
      "value": "test-player",
    },
    Object {
      "type": "return",
      "value": "test-player-id",
    },
  ],
}
`;

exports[`localStorageMethods getInfoFromLocalStorage handles bad/missing extra data 3`] = `[MockFunction]`;

exports[`localStorageMethods getInfoFromLocalStorage handles bad/missing extra data 4`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when all data missing 1`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:gameId",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": null,
    },
  ],
}
`;

exports[`localStorageMethods hasSavedGameInfo works when all data missing 2`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when all data missing 3`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when getCurrentRound fails 1`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:gameId",
    ],
    Array [
      "terrassumptions:playerName",
    ],
    Array [
      "terrassumptions:playerId",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": "test-game-id",
    },
    Object {
      "type": "return",
      "value": "test-player",
    },
    Object {
      "type": "return",
      "value": "test-player-id",
    },
  ],
}
`;

exports[`localStorageMethods hasSavedGameInfo works when getCurrentRound fails 2`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when getCurrentRound fails 3`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when no data missing 1`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:gameId",
    ],
    Array [
      "terrassumptions:playerName",
    ],
    Array [
      "terrassumptions:playerId",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": "test-game-id",
    },
    Object {
      "type": "return",
      "value": "test-player",
    },
    Object {
      "type": "return",
      "value": "test-player-id",
    },
  ],
}
`;

exports[`localStorageMethods hasSavedGameInfo works when no data missing 2`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when no data missing 3`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when player info missing 1`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:gameId",
    ],
    Array [
      "terrassumptions:playerName",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": "test-game-id",
    },
    Object {
      "type": "return",
      "value": null,
    },
  ],
}
`;

exports[`localStorageMethods hasSavedGameInfo works when player info missing 2`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when player info missing 3`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when playerId missing 1`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:gameId",
    ],
    Array [
      "terrassumptions:playerName",
    ],
    Array [
      "terrassumptions:playerId",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": "test-game-id",
    },
    Object {
      "type": "return",
      "value": "test-player",
    },
    Object {
      "type": "return",
      "value": null,
    },
  ],
}
`;

exports[`localStorageMethods hasSavedGameInfo works when playerId missing 2`] = `[MockFunction]`;

exports[`localStorageMethods hasSavedGameInfo works when playerId missing 3`] = `[MockFunction]`;

exports[`localStorageMethods saveGameInfoToLocalStorage saves given data 1`] = `[MockFunction]`;

exports[`localStorageMethods saveGameInfoToLocalStorage saves given data 2`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:gameId",
      "test-game-id",
    ],
    Array [
      "terrassumptions:playerName",
      "test-player-name",
    ],
    Array [
      "terrassumptions:playerId",
      "test-player-id",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
  ],
}
`;

exports[`localStorageMethods saveGameInfoToLocalStorage saves given data 3`] = `[MockFunction]`;

exports[`localStorageMethods savePanoPositionToLocalStorage saves given data 1`] = `[MockFunction]`;

exports[`localStorageMethods savePanoPositionToLocalStorage saves given data 2`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:pano:lat",
      "1",
    ],
    Array [
      "terrassumptions:pano:lng",
      "2",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
  ],
}
`;

exports[`localStorageMethods savePanoPositionToLocalStorage saves given data 3`] = `[MockFunction]`;

exports[`localStorageMethods savePanoPovToLocalStorage saves given data 1`] = `[MockFunction]`;

exports[`localStorageMethods savePanoPovToLocalStorage saves given data 2`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:pano:heading",
      "3",
    ],
    Array [
      "terrassumptions:pano:pitch",
      "4",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": undefined,
    },
    Object {
      "type": "return",
      "value": undefined,
    },
  ],
}
`;

exports[`localStorageMethods savePanoPovToLocalStorage saves given data 3`] = `[MockFunction]`;

exports[`localStorageMethods saveTimerToLocalStorage saves given data 1`] = `[MockFunction]`;

exports[`localStorageMethods saveTimerToLocalStorage saves given data 2`] = `
[MockFunction] {
  "calls": Array [
    Array [
      "terrassumptions:timer",
      "100",
    ],
  ],
  "results": Array [
    Object {
      "type": "return",
      "value": undefined,
    },
  ],
}
`;

exports[`localStorageMethods saveTimerToLocalStorage saves given data 3`] = `[MockFunction]`;
