Skip to content

Commit

Permalink
Merge branch 'next-rando-version' into exclude-locations
Browse files Browse the repository at this point in the history
  • Loading branch information
wooferzfg committed Jun 17, 2024
2 parents 9862ac9 + 854f36d commit 93ff4a6
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 24 deletions.
7 changes: 6 additions & 1 deletion src/data/regular-starting-items.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@
"Deku Leaf",
"Delivery Bag",
"Din's Pearl",
"Dragon Tingle Statue",
"ET Compass",
"ET Dungeon Map",
"Earth God's Lyric",
"Earth Tingle Statue",
"Empty Bottle",
"FF Compass",
"FF Dungeon Map",
"FW Compass",
"FW Dungeon Map",
"Farore's Pearl",
"Fill-Up Coupon",
"Forbidden Tingle Statue",
"Ghost Ship Chart",
"Goddess Tingle Statue",
"Grappling Hook",
"Great Fairy Chart",
"Hero's Charm",
Expand Down Expand Up @@ -49,5 +53,6 @@
"TotG Dungeon Map",
"WT Compass",
"WT Dungeon Map",
"Wind God's Aria"
"Wind God's Aria",
"Wind Tingle Statue"
]
2 changes: 1 addition & 1 deletion src/data/test-macros.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Gohma Boss Arena": "Can Access Boss Entrance in Dragon Roost Cavern",
Expand Down
2 changes: 1 addition & 1 deletion src/data/test-save-data.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/data/tingle-statues.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
"Dragon Tingle Statue",
"Earth Tingle Statue",
"Forbidden Tingle Statue",
"Goddess Tingle Statue",
"Wind Tingle Statue"
]
5 changes: 5 additions & 0 deletions src/services/__snapshots__/logic-helper.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@ exports[`LogicHelper initialize when in swordless mode sets sword to 0 in the st
{
"Boat's Sail": 1,
"Progressive Sword": 0,
"Tingle Statue": 0,
"Triforce Shard": 0,
"Wind Waker": 1,
"Wind's Requiem": 1,
Expand All @@ -1314,6 +1315,7 @@ exports[`LogicHelper initialize when starting without a sword sets sword to 0 in
{
"Boat's Sail": 1,
"Progressive Sword": 0,
"Tingle Statue": 0,
"Triforce Shard": 0,
"Wind Waker": 1,
"Wind's Requiem": 1,
Expand All @@ -1324,6 +1326,7 @@ exports[`LogicHelper initialize with no starting shards, no starting gear, and s
{
"Boat's Sail": 1,
"Progressive Sword": 1,
"Tingle Statue": 0,
"Triforce Shard": 0,
"Wind Waker": 1,
"Wind's Requiem": 1,
Expand All @@ -1336,6 +1339,7 @@ exports[`LogicHelper initialize with starting gear sets the starting items based
"Bombs": 1,
"Deku Leaf": 1,
"Progressive Sword": 3,
"Tingle Statue": 5,
"Triforce Shard": 0,
"Wind Waker": 1,
"Wind's Requiem": 1,
Expand All @@ -1346,6 +1350,7 @@ exports[`LogicHelper initialize with starting shards sets the number of starting
{
"Boat's Sail": 1,
"Progressive Sword": 1,
"Tingle Statue": 0,
"Triforce Shard": 7,
"Wind Waker": 1,
"Wind's Requiem": 1,
Expand Down
14 changes: 7 additions & 7 deletions src/services/__snapshots__/logic-tweaks.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`LogicTweaks applyTweaks when cave entrances are randomized updates the
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Cabana Labyrinth": "Entered Cabana Labyrinth",
Expand Down Expand Up @@ -328,7 +328,7 @@ exports[`LogicTweaks applyTweaks when charts are randomized updates the macros 1
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Cabana Labyrinth": "Can Access Secret Cave Entrance on Private Oasis",
Expand Down Expand Up @@ -640,7 +640,7 @@ exports[`LogicTweaks applyTweaks when dungeon entrances are randomized updates t
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Cabana Labyrinth": "Can Access Secret Cave Entrance on Private Oasis",
Expand Down Expand Up @@ -3967,7 +3967,7 @@ exports[`LogicTweaks applyTweaks when no options are set updates the macros 1`]
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Cabana Labyrinth": "Can Access Secret Cave Entrance on Private Oasis",
Expand Down Expand Up @@ -4281,7 +4281,7 @@ exports[`LogicTweaks applyTweaks when there are nested cave entrances updates th
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Cabana Labyrinth": "Entered Cabana Labyrinth",
Expand Down Expand Up @@ -4593,7 +4593,7 @@ exports[`LogicTweaks applyTweaks when there are nested dungeon entrances updates
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Cabana Labyrinth": "Can Access Secret Cave Entrance on Private Oasis",
Expand Down Expand Up @@ -4905,7 +4905,7 @@ exports[`LogicTweaks applyTweaks when there are random fairy fountain entrances
"Can Access Boss Entrance in Dragon Roost Cavern": "Can Reach Dragon Roost Cavern Boss Stairs & DRC Big Key",
"Can Access Boss Entrance in Earth Temple": "Can Reach Earth Temple Tall Vine Room & ET Big Key",
"Can Access Boss Entrance in Forbidden Woods": "Can Access Forbidden Woods & Can Fly With Deku Leaf Indoors & Can Defeat Boko Babas & (Can Defeat Door Flowers | Grappling Hook) & Can Defeat Mothulas & FW Big Key",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) )",
"Can Access Boss Entrance in Forsaken Fortress": "Can Get Inside Forsaken Fortress & Skull Hammer & ( Can Fly With Deku Leaf Indoors | Hookshot | (Obscure 2 & Precise 2) ) & ( Can Defeat Bokoblins | Can Fly With Deku Leaf Outdoors | Grappling Hook )",
"Can Access Boss Entrance in Tower of the Gods": "Can Reach Tower of the Gods Third Floor & Can Defeat Armos & TotG Big Key",
"Can Access Boss Entrance in Wind Temple": "Can Reach Wind Temple Tall Basement Room & Hookshot & Iron Boots & Can Play Command Melody & Can Play Wind God's Aria & WT Big Key",
"Can Access Cabana Labyrinth": "Can Access Secret Cave Entrance on Private Oasis",
Expand Down
10 changes: 10 additions & 0 deletions src/services/__snapshots__/permalink.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -514,17 +514,21 @@ exports[`Permalink DEFAULT_PERMALINK returns the default options 1`] = `
"Deku Leaf": 0,
"Delivery Bag": 0,
"Din's Pearl": 0,
"Dragon Tingle Statue": 0,
"ET Compass": 0,
"ET Dungeon Map": 0,
"Earth God's Lyric": 0,
"Earth Tingle Statue": 0,
"Empty Bottle": 0,
"FF Compass": 0,
"FF Dungeon Map": 0,
"FW Compass": 0,
"FW Dungeon Map": 0,
"Farore's Pearl": 0,
"Fill-Up Coupon": 0,
"Forbidden Tingle Statue": 0,
"Ghost Ship Chart": 0,
"Goddess Tingle Statue": 0,
"Grappling Hook": 0,
"Great Fairy Chart": 0,
"Hero's Charm": 0,
Expand Down Expand Up @@ -561,6 +565,7 @@ exports[`Permalink DEFAULT_PERMALINK returns the default options 1`] = `
"WT Compass": 0,
"WT Dungeon Map": 0,
"Wind God's Aria": 0,
"Wind Tingle Statue": 0,
},
"starting_hcs": 3,
"starting_pohs": 0,
Expand Down Expand Up @@ -1219,17 +1224,21 @@ exports[`Permalink decode decodes a permalink 1`] = `
"Deku Leaf": 0,
"Delivery Bag": 0,
"Din's Pearl": 0,
"Dragon Tingle Statue": 1,
"ET Compass": 0,
"ET Dungeon Map": 0,
"Earth God's Lyric": 0,
"Earth Tingle Statue": 1,
"Empty Bottle": 0,
"FF Compass": 0,
"FF Dungeon Map": 0,
"FW Compass": 0,
"FW Dungeon Map": 0,
"Farore's Pearl": 0,
"Fill-Up Coupon": 0,
"Forbidden Tingle Statue": 0,
"Ghost Ship Chart": 0,
"Goddess Tingle Statue": 0,
"Grappling Hook": 0,
"Great Fairy Chart": 0,
"Hero's Charm": 0,
Expand Down Expand Up @@ -1266,6 +1275,7 @@ exports[`Permalink decode decodes a permalink 1`] = `
"WT Compass": 0,
"WT Dungeon Map": 0,
"Wind God's Aria": 0,
"Wind Tingle Statue": 1,
},
"starting_hcs": 3,
"starting_pohs": 9,
Expand Down
10 changes: 10 additions & 0 deletions src/services/__snapshots__/settings.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,21 @@ exports[`Settings initializeFromPermalink all starting gear set initializes the
"Deku Leaf": 1,
"Delivery Bag": 1,
"Din's Pearl": 1,
"Dragon Tingle Statue": 1,
"ET Compass": 1,
"ET Dungeon Map": 1,
"Earth God's Lyric": 1,
"Earth Tingle Statue": 1,
"Empty Bottle": 1,
"FF Compass": 1,
"FF Dungeon Map": 1,
"FW Compass": 1,
"FW Dungeon Map": 1,
"Farore's Pearl": 1,
"Fill-Up Coupon": 1,
"Forbidden Tingle Statue": 1,
"Ghost Ship Chart": 1,
"Goddess Tingle Statue": 1,
"Grappling Hook": 1,
"Great Fairy Chart": 1,
"Hero's Charm": 1,
Expand Down Expand Up @@ -94,6 +98,7 @@ exports[`Settings initializeFromPermalink all starting gear set initializes the
"WT Compass": 1,
"WT Dungeon Map": 1,
"Wind God's Aria": 1,
"Wind Tingle Statue": 1,
}
`;

Expand Down Expand Up @@ -181,17 +186,21 @@ exports[`Settings initializeFromPermalink default settings initializes the start
"Deku Leaf": 0,
"Delivery Bag": 0,
"Din's Pearl": 0,
"Dragon Tingle Statue": 0,
"ET Compass": 0,
"ET Dungeon Map": 0,
"Earth God's Lyric": 0,
"Earth Tingle Statue": 0,
"Empty Bottle": 0,
"FF Compass": 0,
"FF Dungeon Map": 0,
"FW Compass": 0,
"FW Dungeon Map": 0,
"Farore's Pearl": 0,
"Fill-Up Coupon": 0,
"Forbidden Tingle Statue": 0,
"Ghost Ship Chart": 0,
"Goddess Tingle Statue": 0,
"Grappling Hook": 0,
"Great Fairy Chart": 0,
"Hero's Charm": 0,
Expand Down Expand Up @@ -228,5 +237,6 @@ exports[`Settings initializeFromPermalink default settings initializes the start
"WT Compass": 0,
"WT Dungeon Map": 0,
"Wind God's Aria": 0,
"Wind Tingle Statue": 0,
}
`;
6 changes: 3 additions & 3 deletions src/services/__snapshots__/tracker-controller.test.js.snap

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion src/services/logic-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import NESTED_ENTRANCES from '../data/nested-entrances.json';
import PRETTY_ITEM_NAMES from '../data/pretty-item-names.json';
import REQUIRED_BOSSES from '../data/required-bosses.json';
import SHORT_DUNGEON_NAMES from '../data/short-dungeon-names.json';
import TINGLE_STATUES from '../data/tingle-statues.json';

import BooleanExpression from './boolean-expression';
import Constants from './constants';
Expand Down Expand Up @@ -763,17 +764,25 @@ class LogicHelper {
}

static #setStartingAndImpossibleItems() {
const startingGear = Settings.getStartingGear();

const startingTingleStatues = _.sumBy(TINGLE_STATUES, (tingleStatue) => {
const tingleStatueCount = _.get(startingGear, tingleStatue, 0);
_.unset(startingGear, tingleStatue);
return tingleStatueCount;
});

this.startingItems = {
[this.ITEMS.WIND_WAKER]: 1,
[this.ITEMS.BOATS_SAIL]: 1,
[this.ITEMS.WINDS_REQUIEM]: 1,
[this.ITEMS.TRIFORCE_SHARD]: Settings.getOptionValue(
Permalink.OPTIONS.NUM_STARTING_TRIFORCE_SHARDS,
),
[this.ITEMS.TINGLE_STATUE]: startingTingleStatues,
};
this.impossibleItems = {};

const startingGear = Settings.getStartingGear();
_.merge(this.startingItems, startingGear);

const swordMode = Settings.getOptionValue(Permalink.OPTIONS.SWORD_MODE);
Expand Down
5 changes: 5 additions & 0 deletions src/services/logic-helper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ describe('LogicHelper', () => {
[LogicHelper.ITEMS.BOMBS]: 1,
[LogicHelper.ITEMS.DEKU_LEAF]: 1,
[LogicHelper.ITEMS.PROGRESSIVE_SWORD]: 2,
'Dragon Tingle Statue': 1,
'Earth Tingle Statue': 1,
'Forbidden Tingle Statue': 1,
'Goddess Tingle Statue': 1,
'Wind Tingle Statue': 1,
},
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/services/permalink.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Permalink {
[this.OPTIONS.SWORD_MODE]: SWORD_MODE_OPTIONS,
};

static DEFAULT_PERMALINK = 'eJzLTSwuSS1icGTwFAhgIBJIMDD8ZnohBGJyMLAwMjABAPuRBZU=';
static DEFAULT_PERMALINK = 'eJzLTSwuSS1icGTwFAhgIBJIMDD8ZnohBGI2MDQoMDgwAAAH4Qbm';

static getVersion(binaryString) {
const clonedString = binaryString.clone();
Expand Down
4 changes: 2 additions & 2 deletions src/services/permalink.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Permalink', () => {

describe('decode', () => {
test('decodes a permalink', () => {
const options = Permalink.decode('eJzLTSwuSS1iKE5NTWHwFAhgQAAFFgjdAGIzoAHZA26/mV40MYI5TAdUmACQWQoO');
const options = Permalink.decode('eJzLTSwuSS1iKE5NTWHwFAhgQAAFFgjdAGIzoAHZA26/mV40NXKAOC4MM1wYAKBhCs4=');

expect(options).toMatchSnapshot();
});
Expand All @@ -68,7 +68,7 @@ describe('Permalink', () => {
let permalink;

beforeEach(() => {
permalink = 'eJzLTSwuSS1iKE5NTWHwFAhgQAAFFgjdAGIzoAHZA26/mV40MYI5TAdUmACQWQoO';
permalink = 'eJzLTSwuSS1iKE5NTWHwFAhgQAAFFgjdAGIzoAHZA26/mV40NXKAOC4MM1wYAKBhCs4=';
options = Permalink.decode(permalink);
});

Expand Down
Loading

0 comments on commit 93ff4a6

Please sign in to comment.