Skip to content

Commit

Permalink
Fix extensions tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Sep 16, 2023
1 parent 38a4014 commit 68c0a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/engine/core/utils/extensions/extensions_order.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("'extensions_order' utils", () => {
saveExtensionsOrder($fromArray([mockExtension("a"), mockExtension("b"), mockExtension("c")]));

expect(lfs.mkdir).toHaveBeenCalledWith("$game_saves$\\");
expect(io.open).toHaveBeenCalledWith("$game_saves$\\extensions_order.scop", "wb");
expect(io.open).toHaveBeenCalledWith("$game_saves$\\extensions_order.scopo", "wb");
expect(file.write).toHaveBeenCalledWith(JSON.stringify({ 1: "a", 2: "b", 3: "c" }));

expect(file.content).toBe(JSON.stringify({ 1: "a", 2: "b", 3: "c" }));
Expand All @@ -47,7 +47,7 @@ describe("'extensions_order' utils", () => {
expect(loadExtensionsOrder()).toEqual({ a: 1, b: 33 });

expect(marshal.decode).toHaveBeenCalledWith(file.content);
expect(io.open).toHaveBeenCalledWith("$game_saves$\\extensions_order.scop", "rb");
expect(io.open).toHaveBeenCalledWith("$game_saves$\\extensions_order.scopo", "rb");

file.content = "";
expect(loadExtensionsOrder()).toEqualLuaArrays([]);
Expand Down
4 changes: 2 additions & 2 deletions src/engine/lib/configs/GameConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ export const gameConfig = {
/**
* Game save file extension for dynamic data.
*/
GAME_SAVE_DYNAMIC_EXTENSION: ".scop_a",
GAME_SAVE_DYNAMIC_EXTENSION: ".scopx",
/**
* Game save preview file extension by default.
*/
GAME_SAVE_PREVIEW_EXTENSION: ".dds",
/**
* Game save extensions order file name.
*/
GAME_SAVE_EXTENSIONS_ORDER_FILE: "extensions_order.scop_e",
GAME_SAVE_EXTENSIONS_ORDER_FILE: "extensions_order.scopo",
};

0 comments on commit 68c0a38

Please sign in to comment.